Solved

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

Posted on 2012-03-16
3
455 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordappend challenge 8 149
Header of docx file 17 98
index Out OF Range Exception error 4 54
What are programming codes and how do they work? 7 73
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.
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.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

15 Experts available now in Live!

Get 1:1 Help Now