Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

standalone MFC program

  • 10-06-2004 04:07PM
    #1
    Closed Accounts Posts: 17


    Hello,

    I've made a windows app with Visual C++ using the MFC's. Everything works grand.
    The problem is when I send the program i.e. the .exe to someone who dosen't have Visual Studio on their machine the app won't work saying it needs something like "mfc40.dll".
    My question is, how do I compile my program so that the required stuff is compiled into the .exe???
    Any ideas??
    cheers,
    Bostitch.


Comments

  • Registered Users, Registered Users 2 Posts: 834 ✭✭✭fragile


    In the MFC App Wizard that you use to create the Project, on step 5 of 6, you are asked how you would like to use the MFC library - As a shared DLL, or as a statically linkied library.

    In your case you should select Statically Linked Library, as this will link your app to the static MFC file at build (of course this will make your program larger)

    For further info just search for Statically Linked in the Visual Studio MSDN documentation


Advertisement