Solved

"Use MFC in a Static Library" doesn't seems to work

Posted on 2012-03-16
3
452 Views
Last Modified: 2012-08-14
i'm trying to include the DLL of MFC inside the EXE of my application but i'm still getting this error message when i try to run my application in an XP Virtual Machine:

"This application has failed to start because of mfc100u.dll was not found.  Re-installing the application may fix this problem"

I don't want to give separate DLL with my application, i really want to include them in my EXE (and yes i know it will make the EXE bigger).

Any idea what i'm missing?  What should i do to really include these DLL?

(Note: I'm using VS2010)

thanks
0
Comment
Question by:cdebel
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 37729936
Stupid question - have you set that option for both the Debug and Release build?
0
 
LVL 10

Author Comment

by:cdebel
ID: 37730220
Stupid answer - No.

LOL!   Sorry.  I really forgot to do that, and i was doing my test with the Release version while i was doing the changes in the settings of the Debug version only.

I bet you never thought that you would get 500 points that easy? :)
0
 
LVL 86

Expert Comment

by:jkr
ID: 37730350
Well, I know the conundrums of Visual Studio for a quite while now, and since  I sometimes forget to always change settings for both configurations as well, I thought this could be the most likely reason - [beep] happens ;o)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This is an explanation of a simple data model to help parse a JSON feed
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

760 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

22 Experts available now in Live!

Get 1:1 Help Now