< Pseudo code begin>
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt)
{
// TODO: Load dependencies here
// You *must* call On_kInitAppMsg here
AcRx::AppRetCode retCode =AcRxDbxApp::On_kInitAppMsg (pkt) ;
bool bLoaded = acrxLoadModule(L"ADSCustEnt.dbx", true, false);
// TODO: Add your initialization code here
static AcMgObjectFactoryBase* PEs[] =
{
new AcMgObjectFactory(),
new AcMgObjectFactory(),
// end the array with a NULL
NULL
};
g_PEs = PEs;
return (retCode) ;
}
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt)
{
// TODO: Add your code here
int i=0;
while (g_PEs[i]!=NULL)
delete g_PEs[i++];
// You *must* call On_kUnloadAppMsg here
AcRx::AppRetCode retCode =AcRxDbxApp::On_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
bool bUnLoaded = acrxUnloadModule(L"ADSCustEnt.dbx", false);
return (retCode) ;
}
< Pseudo code End>
< Pseudo code begin>
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt)
{
// TODO: Load dependencies here
// You *must* call On_kInitAppMsg here
AcRx::AppRetCode retCode =AcRxDbxApp::On_kInitAppMsg (pkt) ;
bool bLoaded = acrxLoadModule(L"ADSCustEnt.dbx", true, false);
// TODO: Add your initialization code here
static AcMgObjectFactoryBase* PEs[] =
{
new AcMgObjectFactory(),
new AcMgObjectFactory(),
// end the array with a NULL
NULL
};
g_PEs = PEs;
return (retCode) ;
}
virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt)
{
// TODO: Add your code here
int i=0;
while (g_PEs[i]!=NULL)
delete g_PEs[i++];
// You *must* call On_kUnloadAppMsg here
AcRx::AppRetCode retCode =AcRxDbxApp::On_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
bool bUnLoaded = acrxUnloadModule(L"ADSCustEnt.dbx", false);
return (retCode) ;
}
< Pseudo code End>
Eric Wright
Sr. Web Product Manager
Autodesk Knowledge Network
Autodesk, Inc.