// Unload this application. Unregister all objects // registered in InitApplication. void UnloadApplication() { // NOTE: DO NOT edit the following lines. //{{AFX_ARX_EXIT acedRegCmds->removeGroup("ASDKETRANSMIT"); //}}AFX_ARX_EXIT // TODO: clean up your application if (bActive == Adesk::kTrue) { if (SUCCEEDED(pITransmitOperation->cancelSubscriptionToAddFileNotification(pHandler))) { pITransmitOperation.Release(); pHandler.Release(); bActive = Adesk::kFalse; acedPrompt("\n*** eTransmit Notifier removed ***\n"); } else { acedPrompt("\n*** Can't unsubscribe from Add File notification ***\n"); } } }
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) { AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ; // TODO: Add your initialization code here if (!InitSystem()) { return AcRx::kRetError ; } InitApplication() ; if (!bWatchSelectDone) { if (acedRegisterWatchWinMsg(WatchSelect)==FALSE) { acedPrompt(_T("\nhook can't be registered.")) ; } else { acedPrompt(_T("hook been registered!\n")); bWatchSelectDone = TRUE; } } return (retCode) ; }