menu is not added when change self-register add-in dll to registry free dll

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We migrate from self-register dll to registry free dll by using .addin file and embedded manifest file into add-in dll. The procedure is following ‘DevTV: Registry Free Inventor Add-Ins’(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=20143212).
After put the .addin file and dll file into correct folder, the add in item appears in the add in list and can be loaded in Inventor 2018 X64.
However, we have a big problem, the menu is disappear.
The problem is because ‘OnActivate’ function does not start when dll is loaded.
When we use self-register type, this function will automatically start when loading dll.
We tried to create a new empty add-in project from Inventor 2018 template, and the ‘OnActivate’ function will automatically start when loading dll.
We compared the two project, all the settings and definition are the same.
The add-in project is created from Inventor 2013 or earlier template and use visual C++.
Can we just modify the source code, instead of creating new project and copy everything over?