?
Solved

linking to MFC with static link library not DLL in V6.0

Posted on 1999-01-07
4
Medium Priority
?
278 Views
Last Modified: 2013-11-20
Prior to C++ Version 6.0 the AppWizard had on option
to let you select between linking to MFC dll or statically
linking the code into your application. That option seems
to have gone now. Is it still possible to link statically?
Where is this change documented? I've tried removing the
_AFXDLL compile defines from the C/C++ and resources settings and changing the "Use run-time Library" to "Debug Multithreaded" from "Debug Multithreaded Dll". But now the linker can't find nafxcw.lib. Which
is not unreasonable as I can't find it either and it's not
on my V6.0 distribution CD.
0
Comment
Question by:GGRUNDY
  • 3
4 Comments
 
LVL 3

Author Comment

by:GGRUNDY
ID: 1327374
Edited text of question
0
 
LVL 3

Author Comment

by:GGRUNDY
ID: 1327375
Adjusted points to 300
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 900 total points
ID: 1327376
After you generate the application, you can use Project | Settings to change the option. Make sure to switch to the General page and under Microsoft Foundation Classes change the combobox item from Use MFC in a Shared DLL to Use MFC in a Static Library. Do a Rebuild All.

Make sure that you are using the Professional or higher version of 6.0. If you have the standard or Learning edition, those do not have the source to MFC or the MFC static libraries. If you have the CD-ROM, you can copy the MFC static libraries to the MFC\LIB directory and relink.
0
 
LVL 3

Author Comment

by:GGRUNDY
ID: 1327377
I'm using a standard edition. Silly me for assuming that you would be able to build an executable. Do you know where in the documentation Microsoft confess up that the standard edition is not enough to build a stand-alone executable.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question