The ATL Add-In not activating

The ATL Add-In not activating

1398463346
Contributor Contributor
114 Views
0 Replies
Message 1 of 1

The ATL Add-In not activating

1398463346
Contributor
Contributor

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);
}

1398463346_0-1702460714107.png

 

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 ?

 

Kind regards,
Wade
0 Likes
115 Views
0 Replies
Replies (0)