1, the header file. The Main h
#include
2, the Main CPP in
# pragma package (smart_init)
# pragma resource "*. DFM
"# pragma link "Midas. Lib"
# pragma link "dsnap lib"
Extern "C" __stdcall DllGetDataSnapClassObject (REFCLSID rclsid, REFIID riid, void * * PPV);
Void __fastcall TMainFrm: : FormCreate (TObject * Sender)
{
RegisterMidasLib (DllGetDataSnapClassObject);
}
3, the compilation problems:
[ilink32 Error] Error: Unresolved external 'DllGetDataSnapClassObject referenced the from E: \ SOFTWORK \ ERP \ WIN32 \ DEBUG \ MAIN OBJ
[ilink32 Error] Error: Unable to perform the link
In question please help guide, thank you!
CodePudding user response:
Static load MIDAS. DLLNeed to add.lib file to the project
CodePudding user response:
The Midas static lib with engineering manager added into engineeringThe problem is post ah this is a year ago,