Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now