The ATL Add-In not activating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm fairly new to programming in inventor and I have a simple question.
I am unable to get my addin to work. I'm programming in C++ with VS 2019 and inventor 2023.
I have check the Config file and dll file is in the correct folder.
And it works because when Inventor starts I can see this function is beeing called and the dialog is poped on
CMyTestEnvent()
{
MessageBoxA(NULL, "Class created success", "Happy", MB_OK);
}
But the function below is never called. When I load the addin manually, this function isn't called either.
HRESULT __stdcall CMyTestEnvent::Activate(IDispatch* pDisp, VARIANT_BOOL FirstTime)
{
}
When I for instance close inventor, my add-in isn't notified,nor does it reach this code.
HRESULT __stdcall CMyTestEnvent::Deactivate(void)
{
}
Here is the GitHub link for this project
https://github.com/WittyQ/InventorAddinTest.git
Can somebody please tell me what I need to do to get my add-in work normally ?