Solved

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

Posted on 1999-01-07
4
263 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 300 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

827 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