Zombies
Zombies

Reputation: 25852

How should I deploy an MFC application?

I created an application in VS 2008 Express as an MFC app just to take advantage of the easy GUI creation. I might re-do this app in pure win32 since no other MFC classes are used (just a button and a text box, the button fires off the main program, all win32). My only question that determines whether I stay in MFC or port it over to pure win32 is this:

How difficult is it to deploy an MFC app? What do I need to do (in VS 2008) to make sure it works on another machine?

Upvotes: 1

Views: 2521

Answers (2)

Vinay
Vinay

Reputation: 4783

You can use Visual Studio Merge modules. These can be added while building the installer. Merge modules provide all the dlls, files required to run your application.

Upvotes: 0

Martin Beckett
Martin Beckett

Reputation: 96119

Statically link MFC and it's just another .exe.
You can just give that to the user or create an installer with either the microsoft .msi tool or a regular setup.exe with something like innosetup.

Edit - the error message in your comment is about another dll that is part of a 3rd party library. You can't (easily) take a DLL and incorporate it into your app. the licensing may also require you to ship their DLL as a separate lib.

Upvotes: 8

Related Questions