MFC,Win32 application Execution Error

G

Guest

Hello All,

I am trying to run a MFC application created using Visual Studio 2005 on my
XPe system; I get the error when I try to run the exe “The application has
failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem.â€
I have created a .NET application and included the component .Net framework
2.0 the application runs well in XPe.
I have included the following components in target designer:
1) Visual C++ Runtime Libraries (Side X Side)
2) Visual C++ Runtime Libraries Policy XPSP2
3) Visual C++ Runtime Libraries XPSP2
4) Microsoft Visual C++ Run Time (Legacy)
5) Microsoft Visual C++ Run Time
6) .NET Framework 2.0
What are the missing components which I must add to run a MFC or Win32
application on XP Embedded system?
Do I need to make a component of the exe first using the component designer?

Thanks & Regards
Roshan.
 
K

KM

Roshan,

You are probably missing MFC libraries (7,7.1, or 8 version).
Running your application through DependencyWalker tool would show you what libraries are required.

If it is MFC, the best advice I can give you here is to simply change your VS project settings to link to the MFC libraries
statically and not as shared libraries.

Also please read through the following two threads:
http://groups.google.com/group/micr...d/browse_thread/thread/c34648f6105e9e9e?hl=en
http://groups.google.com/group/micr...d/browse_thread/thread/010b1864e4c62370?hl=en

It always helps if you create a component out of your custom application using Component Designer tool. This implies analyzing
application dependencies as well (please read there product docs on how to make a component out of a custom application).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top