!!!!!!!!!!!!!!!!!!!!!名位大侠求指导!!!!!!!!!!!!!!!!
我定义 class如下:
class TInv : public TThread
{private:
protected:
void __fastcall Execute()
{
RFID_STATUS status;
int inventoryParms;
int indent_level = 0;
while(!Terminated)
{
status = myFunction(inventoryParms, 0);
Sleep(5);
}
}
public:
__fastcall TInv(bool CreateSuspended) // 构造函数 ??
{
//
}
};
TInv* m_pInvThread;
编译出错:
[BCC32 Error] m2.cpp(658): E2251 Cannot find default constructor to initialize base class 'TThread'
Full parser context
m2.cpp(630): class TInv
m2.cpp(661): decision to instantiate: TInv::TInv(bool)
--- Resetting parser context for instantiation...
m2.cpp(658): parsing: TInv::TInv(bool)
!!!!!!!!!!!!!!!!!!!!!名位大侠求指导!!!!!!!!!!!!!!!!