Community
Public Test Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

test code

0 REPLIES 0
Reply
Message 1 of 1
wrighte
316 Views, 0 Replies

test code

< 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.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report