Solved

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

Posted on 1999-01-07
4
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

726 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