How compile AddIn with MFC for used another PC

How compile AddIn with MFC for used another PC

-pezi-
Enthusiast Enthusiast
778 Views
4 Replies
Message 1 of 5

How compile AddIn with MFC for used another PC

-pezi-
Enthusiast
Enthusiast

Hi

I wrote my own add-in for Fusion 360 that uses MFC (inspired NativeUI by Adam Nagy, Autodesk). It works fine on my computer, but when I install it on another computer it doesn't run. I know that advising them without being able to see the source code is almost impossible. Despite this, can you try to advise me where I am going wrong? Missing some link? Project compiler settings? ... I used MS Visual Studio 2019 latest version on Windows 10.

0 Likes
Accepted solutions (1)
779 Views
4 Replies
Replies (4)
Message 2 of 5

BrianEkins
Mentor
Mentor

It sounds like your dll has some dependencies that are not on the other computer.  I would try installing the Microsoft VC++ Redistributable on the other computer and see if that solves the problem.  If it does, you can include the redistributable with your installer for your add-in.  

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 5

-pezi-
Enthusiast
Enthusiast

Hi,

thanks for your advice, but installing MS VC++ Redistributable doesn't solve my issue. I tried building the project with the setting of Use MFC in a Static Library instead of Use MFC in a Shared DLL. With this settings addIn is possible to load to Fusion360, but when the MFC dlgWindow should load, I got error like this "File: f:\\dd\vctools\vc7libs\ship\atlmfc\src\mfc\appcore.cpp. Line: 196. **line 196". I can't solve this problem for now.

0 Likes
Message 4 of 5

BrianEkins
Mentor
Mentor
Accepted solution

I don't know what the problem is.  I don't think it has anything to do with Fusion and is a general question about deploying a program that uses MFC.  I would suggest posting a question on StackOverflow.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 5 of 5

-pezi-
Enthusiast
Enthusiast
I agree that it won't be a problem with Fusion360 and thank you for the direction anyway.
0 Likes