Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redistributing MFC apps

Status
Not open for further replies.

timmay3141

Programmer
Dec 3, 2002
468
US
This is something that has been bugging me for a while. I have MSVC++ 6.0 Standard Edition. I write MFC programs for fun and some of them are good enough that I actually use them quite a bit. Some of my friends use my programs too - and here's the problem. Any time I send someone new one of my apps, I have to send a lot of DLLs with it. This is really irritating, and I have to believe that Microsoft made a way around it (since people don't have these DLLs already, I have to assume that either there is a way around sending them, or no one actually uses MFC for commercial apps). I looked on MSDN trying to find if there was a way to get it without sending the DLLs, and I couldn't figure it out. Since many people here use MFC much more than I do, I'm sure you know. Please share the knowledge - thanks!
 
link MFC as statically linked library. By the way, if you have distributed the MFC dll's once, you have not to distribute them again with each new application. So, if you do many applications using MFC is more feasible to link MFC dinamically and to distribute with dlls. If you do one single application and on target machine will is only one, your application using MFC, link MFC as statically linked library.

Ion Filipski
1c.bmp
 
In the Project dialog under the General tab the only option is to use MFC in a shared DLL. Can I fix this or am I looking in the wrong place to statically link?
 
Hi timmay,

Project -> Settings -> General -> "Microsoft Foundation Classes" (drop-down box) with 2 options (static or shared/dynamic)


Alternatively, you can even set this option when u create a new application with AppWizard

goodluck

/Srikanth

What happens if you’re scared half to death twice?
 
In the place you see use MFC as xxxx change this option(there is a drop down combo box) and choose the option use MFC as statically linked....

Ion Filipski
1c.bmp
 
What I was saying is that there is nothing in that combo box other than "Use MFC in a Shared DLL". Apparently I have no option but to dynamically link - is this because I have the standard edition of the compiler as opposed to professional edition, or is it something else?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top