?
Solved

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

Posted on 1999-01-07
4
Medium Priority
?
268 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 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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 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