还有,在另一个DLL中:
勾project -> options -> build with runtime packages 编译通过;
不勾project -> options -> build with runtime packages 编译通不过;
typedef
__interface INTERFACE_UUID("{1DCCA889-3748-4FDA-8D4D-142BACC3BCF2}"
_IPorte : public IInterface
{
public:
virtual bool __fastcall Start(unsigned char Device) = 0;
virtual void __fastcall Shutdown(void) = 0;
virtual bool __fastcall Open(unsigned char Addr) = 0;
virtual bool __fastcall Close(unsigned char Addr)= 0;
virtual bool __fastcall Status(unsigned char Addr, unsigned int *Status) = 0;
virtual bool __fastcall Get(unsigned char Addr, unsigned int *Count) = 0;
virtual bool __fastcall Reset(unsigned char Addr) = 0;
} IPorte;
extern "C"
XPORT_TYPE IPorte *CreatePorte();
错误信息:
[Link Error]Unresolved external '__fastcall System::TObject::' referenced from D:/DLLUnit.OBJ.
该怎么处理?