Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
Using Visual Studio 2008 (C++ apps)

After going thru the MFC Wizard to create my app template, and then
spending a couple days making the thing work, I now realize that
I failed to switch the default...

Use of MFC
(*) Use MFC in a shared DLL <-- OOPS, I left it here in the wizard.
( ) Use MFC in a static library <-- but this is what I wanted.

So, which Project|Properties setting(s) does this wizard radio button change?
What do I need to change to now make it link statically, so I have only a single
EXE to distribute?

thx, and a candybar to whoever helps me out.

-David Brown
Posted
Comments
[no name] 23-Jul-12 15:50pm    
Project properties->Use of MFC
Sergey Alexandrovich Kryukov 23-Jul-12 16:15pm    
What do you call a "static link"?
--SA
JackDingler 23-Jul-12 17:06pm    
Using MFC in a static library.

In the Solution Explorer Pane, right click the name of your project and select, 'Properties'.

Then select, in the list on the left, 'Configuration Properties'->'General'.

In the right hand pane, change the option for 'Use of MFC'.

********************************************************

As an aside, if you start employing third party libraries and writing extension DLLs, you'll just be changing it back. All you gain in the static build is that the machines you install it on, won't need the MFC runtime installed.
 
Share this answer
 
v2
Thank You. That sure was staring me right in the face. I dont know
how I missed it. But my supreme thanks anyway. IOWEYOUACANDYBAR.
-DJB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900