Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-03-16
3
Medium Priority
?
475 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
[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
  • 2
3 Comments
 
LVL 86

Accepted Solution

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

Author Comment

by:Christian de Bellefeuille
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

636 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