I know I am 12 years late.
But, Make sure to include a proper acrxentrypoint and definition file as mentioned here.
- - - Updated - - -
Full explanation
Add a new C++ source file to the project and enter the following code:
Code:
#include "rxregsvc.h"
#include "acutads.h"
// Simple acrxEntryPoint code. Normally intialization and cleanup
// (such as registering and removing commands) should be done here.
//
extern "C" AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void* appId)
{
switch(msg) {
case AcRx::kInitAppMsg:
// Allow application to be unloaded
// Without this statement, AutoCAD will
// not allow the application to be unloaded
// except on AutoCAD exit.
//
acrxUnlockApplication(appId);
// Register application as MDI aware.
// Without this statement, AutoCAD will
// switch to SDI mode when loading the
// application.
//
acrxRegisterAppMDIAware(appId);
acutPrintf("\nExample Application Loaded");
break;
case AcRx::kUnloadAppMsg:
acutPrintf("\nExample Application Unloaded");
break;
}
return AcRx::kRetOK;
}
The project also needs a definition file. Add a new text file to the project and name it with a .def extension.
Enter the following code in the DEF file
Code:
LIBRARY "objectarx_program_name.arx"
EXPORTS
acrxEntryPoint PRIVATE
acrxGetApiVersion PRIVATE