AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) { switch(msg) { case AcRx::kInitAppMsg: acrxUnlockApplication(pkt); // Try to allow unloading acrxRegisterAppMDIAware(pkt); if (acrxServiceIsRegistered("AsdkPoly") && AsdkPoly::desc() != NULL && AcDbXmlObjectProtocol::desc() != NULL) { // add XML I/O protocol extension to AsdkPoly // gpPolyXmlExtension = new AcDbXmlPoly(AsdkPoly::desc()); AsdkPoly::desc()->addX(AcDbXmlObjectProtocol::desc(), gpPolyXmlExtension); acrxBuildClassHierarchy(); updateRegistry(); } break; case AcRx::kUnloadAppMsg: if (acrxServiceIsRegistered("AsdkPoly") && AsdkPoly::desc() != NULL && AcDbXmlObjectProtocol::desc() != NULL) { AsdkPoly::desc()->delX(AcDbXmlObjectProtocol::desc()); } if (gpPolyXmlExtension) delete gpPolyXmlExtension; break; } return AcRx::kRetOK; }
// Arx entry point function // AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* appId) { switch (msg) { case AcRx::kInitAppMsg: acrxUnlockApplication(appId); acrxRegisterAppMDIAware(appId); gpAsdkAppDocGlobals = new AsdkAppDocGlobals(curDoc()); gpAsdkAppDocGlobals->setGlobals(curDoc()); acedRegCmds->addCommand("ASDK_NOTIFY_TEST", "ASDK_WATCH", "WATCH", ACRX_CMD_TRANSPARENT, watchDb); acedRegCmds->addCommand("ASDK_NOTIFY_TEST", "ASDK_CLEAR", "CLEAR", ACRX_CMD_TRANSPARENT, clearReactors); break; case AcRx::kUnloadAppMsg: if (gpAsdkAppDocGlobals != NULL) { gpAsdkAppDocGlobals->unload(); delete gpAsdkAppDocGlobals; gpAsdkAppDocGlobals = NULL; } acedRegCmds->removeGroup("ASDK_NOTIFY_TEST"); break; } return AcRx::kRetOK; }
extern "C" AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void* pkt) { switch( msg ) { case AcRx::kInitAppMsg: if (!acrxLoadModule("curveText.dbx", false)) return AcRx::kRetError; acrxDynamicLinker->unlockApplication(pkt); acrxRegisterAppMDIAware(pkt); initApp(); updateRegistry(); pCurvetextContextMenu = new curvetextContextMenu; pCurveContextMenu = new curveContextMenu; acedAddObjectContextMenu(AcDbCurve::desc(), pCurveContextMenu, pkt); acedAddObjectContextMenu(AdcgCurveText::desc(), pCurvetextContextMenu, pkt); break; case AcRx::kUnloadAppMsg: unloadApp(); acedRemoveObjectContextMenu(AcDbCurve::desc(), pCurveContextMenu); acedRemoveObjectContextMenu(AdcgCurveText::desc(), pCurvetextContextMenu); acrxUnloadModule("curveText.dbx"); delete pCurveContextMenu; delete pCurvetextContextMenu; break; default: break; } return AcRx::kRetOK; }
AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) { switch(msg) { case AcRx::kInitAppMsg: acrxUnlockApplication(pkt); acrxRegisterAppMDIAware(pkt); InitApp(); break; case AcRx::kUnloadAppMsg: acedRegCmds->removeGroup(_T("DYNBLKAPP")); if (pPts) { ACRX_PROTOCOL_REACTOR_LIST_AT(AcDbBlockTableRecord::desc(), AsdkInsertionPoints::desc())->removeReactor(pPts); delete pPts; pPts = NULL; } break; default: break; } return AcRx::kRetOK; }
extern "C" AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void *pkt ) { switch(msg) { case AcRx::kInitAppMsg: //intialize AsdkAmodeler // acrxLoadModule(_T("aecmodeler50.dbx"),0); // Try to allow unloading // acrxUnlockApplication(pkt); //register as being MDI aware // acrxRegisterAppMDIAware(pkt); //initialize our custom class AsdkBody::rxInit(); acrxBuildClassHierarchy(); break; case AcRx::kUnloadAppMsg: deleteAcRxClass(AsdkBody::desc()); //unload AsdkAModeler if we have been the //only one using it. (RX does reference counting) acrxUnloadModule(_T("aecmodeler50.dbx")); break; } return AcRx::kRetOK; }
AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void *p ) { switch ( msg ) { case AcRx::kInitAppMsg: acrxRegisterAppMDIAware( p ); acrxUnlockApplication( p ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("AddMonitor"), _T("ADDMON"), ACRX_CMD_TRANSPARENT, cmdAddMonitor ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("RemoveMonitor"), _T("REMMON"), ACRX_CMD_TRANSPARENT, cmdRemoveMonitor ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("AddFilter"), _T("ADDFIL"), ACRX_CMD_TRANSPARENT, cmdAddFilter ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("RemoveFilter"), _T("REMFIL"), ACRX_CMD_TRANSPARENT, cmdRemoveFilter ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("ChangesOn"), _T("CHON"), ACRX_CMD_TRANSPARENT, cmdFilterChangesOn ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("ChangesOff"), _T("CHOFF"), ACRX_CMD_TRANSPARENT, cmdFilterChangesOff ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("AddReactor"), _T("ADDREAC"), ACRX_CMD_TRANSPARENT, cmdAddReactor ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("RemoveReactor"), _T("REMREAC"), ACRX_CMD_TRANSPARENT, cmdRemoveReactor ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("ForcedPickon"), _T("FPON"), ACRX_CMD_TRANSPARENT, cmdForcedPickOn ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("ForcedPickoff"), _T("FPOFF"), ACRX_CMD_TRANSPARENT, cmdForcedPickOff ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("CursorOn"), _T("CURON"), ACRX_CMD_TRANSPARENT, cmdCursorOn ); acedRegCmds->addCommand( _T("AsdkInputPoint"), _T("CursorOff"), _T("CUROFF"), ACRX_CMD_TRANSPARENT, cmdCursorOff ); break; case AcRx::kUnloadAppMsg: acedRegCmds->removeGroup( _T("AsdkInputPoint") ); break; } return AcRx::kRetOK; }
extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) { switch (msg) { case AcRx::kInitAppMsg: acrxDynamicLinker->unlockApplication(pkt); acrxRegisterAppMDIAware(pkt); initApp(); break; case AcRx::kUnloadAppMsg: unloadApp(); } return AcRx::kRetOK; }
extern "C" __declspec(dllexport) AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* p) { switch(msg) { case AcRx::kInitAppMsg: acrxRegisterAppMDIAware(p); break; case AcRx::kUnloadAppMsg: break; default: break; } return AcRx::kRetOK; }
AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* p) { switch( msg ) { case AcRx::kInitAppMsg: acrxRegisterAppMDIAware(p); acedRegCmds->addCommand( "RX_TEST", "MODAL", "MODAL", ACRX_CMD_MODAL, &modalDlgTest); acutPrintf( "\nEnter \"modal\" to bring up the dialog.\n" ); break; case AcRx::kUnloadAppMsg: acedRegCmds->removeGroup("RX_TEST" ); break; default: break; } return AcRx::kRetOK; }
AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt) { switch (msg) { case AcRx::kInitAppMsg: if (!acrxClassDictionary->at("AcBrEntity")) acrxDynamicLinker->loadModule("acbr16.dbx", 1); initModule(); acrxUnlockApplication(pkt); // try to allow unloading acrxRegisterAppMDIAware(pkt); break ; case AcRx::kUnloadAppMsg: unloadModule(); break ; default: break ; } return AcRx::kRetOK; }
extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* p) { switch( msg ) { case AcRx::kInitAppMsg: acrxDynamicLinker->unlockApplication(p); acrxRegisterAppMDIAware(p); initApp(); break; case AcRx::kUnloadDwgMsg: detachDbReactor(CUR_DB); break; case AcRx::kUnloadAppMsg: unloadApp(); break; default: break; } return AcRx::kRetOK; }
//extern "C" __declspec(dllexport) AcRx::AppRetCode extern "C" AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void* pkt) { switch( msg ) { case AcRx::kInitAppMsg: acrxDynamicLinker->unlockApplication(pkt); acrxRegisterAppMDIAware(pkt); initApp(); break; case AcRx::kUnloadAppMsg: unloadApp(); break; case AcRx::kInitDialogMsg: addDwgSetngTabs((CAdUiTabExtensionManager*)pkt); break; default: break; } return AcRx::kRetOK; }
// acrxEntryPoint(internal) // This function is the entry point for your application. // AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* ptr) { switch (msg) { case AcRx::kInitAppMsg: acrxUnlockApplication(ptr); acrxRegisterAppMDIAware(ptr); initApp(); break; case AcRx::kUnloadAppMsg: unloadApp(); break; case AcRx::kLoadDwgMsg: create_EditorReactor(); #ifdef DIRECT acutPrintf( "\nHardOwnership & addAcDbObject\n" ); #else #ifdef XLATE acutPrintf( "\nDeepCloneXlation activated.\n" ); #else acutPrintf( "\nDeepCloneXlation de-activated.\n" ); #endif // XLATE #ifdef NOD acutPrintf( "Custom object will be stored in the" " NamedObjectsDictionary.\n" ); #else acutPrintf( "Custom object will be stored in the" " Extension Dictionary.\n" ); #endif // NOD #ifdef HARDPOINTER acutPrintf( "Entity keeps HardPointerId of custom object.\n" ); #else acutPrintf( "Entity keeps SoftPointerId of custom object.\n" ); #endif // HARDPOINTER #endif // DIRECT acutPrintf( "Start with 'addobjects'.\n" ); } return AcRx::kRetOK; }