Ejemplo n.º 1
0
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;
}
extern "C" AcRx::AppRetCode

acrxEntryPoint(AcRx::AppMsgCode msg, void* appId)

{

    switch (msg) {

    case AcRx::kInitAppMsg:

        acrxDynamicLinker->unlockApplication(appId);

		acrxDynamicLinker->registerAppMDIAware(appId);

        initApp();

        break;

    case AcRx::kUnloadAppMsg:

        unloadApp();

    }

    return AcRx::kRetOK;

}
Ejemplo n.º 3
0
extern "C" AcRx::AppRetCode 
acrxEntryPoint(AcRx::AppMsgCode msg, void* appId)
{
    switch (msg) {
    case AcRx::kInitAppMsg:
        acrxDynamicLinker->unlockApplication(appId);
		acrxDynamicLinker->registerAppMDIAware(appId);
		acrxDynamicLinker->loadModule("square.dbx", true);
        initApp();
        break;
    case AcRx::kUnloadAppMsg:
        unloadApp();
        break;
    case AcRx::kLoadDwgMsg:

        break;
    case AcRx::kUnloadDwgMsg:

        break;
	case AcRx::kInvkSubrMsg:

		break;
    default:
		;
    }
    return AcRx::kRetOK;
}
Ejemplo n.º 4
0
	virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) {
		// TODO: Add your code here

		// You *must* call On_kUnloadAppMsg here
		AcRx::AppRetCode retCode =AcRxArxApp::On_kUnloadAppMsg (pkt) ;

		// TODO: Unload dependencies here
		unloadApp();
		return (retCode) ;
	}
Ejemplo n.º 5
0
extern "C" __declspec(dllexport) AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void *p)
{
    switch (msg)
    {
    case AcRx::kInitAppMsg:
        acrxRegisterAppMDIAware(p);
        acrxUnlockApplication(p);
        initApp();
        break;
    case AcRx::kUnloadAppMsg:
        unloadApp();
        break;
    }
    return AcRx::kRetOK;
}
Ejemplo n.º 6
0
extern "C" AcRx::AppRetCode
acrxEntryPoint(AcRx::AppMsgCode msg, void* pkt)
{
    switch (msg) {
    case AcRx::kInitAppMsg:
        // This application can be unloaded
        acrxDynamicLinker->unlockApplication(pkt);
        // This is an MDI aware application
        acrxDynamicLinker->registerAppMDIAware(pkt);
        initApp();
        break;
    case AcRx::kUnloadAppMsg:
        unloadApp();
		break;
    }
    return AcRx::kRetOK;
}
Ejemplo n.º 7
0
extern "C" AcRx::AppRetCode acrxEntryPoint( AcRx::AppMsgCode msg, void* pkt)
{
  switch( msg ) 
  {
    case AcRx::kInitAppMsg: 
      initApp();
      acrxUnlockApplication(pkt);
	  acrxDynamicLinker->registerAppMDIAware(pkt);
      break;
    case AcRx::kUnloadAppMsg: 
      unloadApp(); 
      break;
    default:
      break;
  }
  return AcRx::kRetOK; 
}
Ejemplo n.º 8
0
/////////////////////////////////////////////////////////////////////////////
// ZRX EntryPoint
extern "C" AcRx::AppRetCode 
zcrxEntryPoint(AcRx::AppMsgCode msg, void* pkt)
{
    AcRxDynamicLinker *pLinker = acrxDynamicLinker;
    switch (msg) {
    case AcRx::kInitAppMsg:
        // Comment out the following line if your
        // application should be locked into memory
        pLinker->unlockApplication(pkt);
        pLinker->registerAppMDIAware(pkt);
        initApp();
        break;
    case AcRx::kUnloadAppMsg:
        unloadApp();
        break;
    }
    return AcRx::kRetOK;
}
Ejemplo n.º 9
0
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;
}
Ejemplo n.º 10
0
//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;
}
Ejemplo n.º 11
0
extern "C" AcRx::AppRetCode zcrxEntryPoint( AcRx::AppMsgCode msg, void* appId)
{
	switch( msg ) 
	{
	case AcRx::kInitAppMsg: 
		acrxDynamicLinker->unlockApplication(appId);
		acrxDynamicLinker->registerAppMDIAware(appId);
		initApp(); 
		break;
	case AcRx::kUnloadAppMsg: 
		unloadApp(); 
		break;
[!if MFC_EXT_SHARED]
	case AcRx::kInitDialogMsg:

		break;
[!endif]
	default:
		break;
	}
	return AcRx::kRetOK;
}
Ejemplo n.º 12
0
// 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;
}
Ejemplo n.º 13
0
void onDestroy(){
	unloadApp(&_app);
}