Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C++ AddIn, Server, Deactivate or OnDeactivate

2 REPLIES 2
Reply
Message 1 of 3
oransen
330 Views, 2 Replies

C++ AddIn, Server, Deactivate or OnDeactivate

The plugin examples shows the body to

STDMETHODIMP CSimpleAddInServer::Deactivate(void)

(for example). But the new wizard creates a function like this:

 

STDMETHODIMP CCh1AddInAddInServer::OnDeactivate ()

 

Do they serve the same purpose? And so should I only use OnDeactivate?

 

 

2 REPLIES 2
Message 2 of 3
xiaodong_liang
in reply to: oransen

Hi,

 

As I remember, this is just because which type of interface is selected when creating the addin (see attached fig).

 

if Use IDispatch interfac,  it is OnDeactivate (). otherwise, Deactivate. the similar to activate method.

Message 3 of 3
oransen
in reply to: xiaodong_liang

Yes, one was from an old plugin example and one from a wizard generated project.

 

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

Post to forums  

Autodesk Design & Make Report