This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).

When running the application in debug mode, it fails to start and displays the following error
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001)."
I've tried advices used in similar problem mentioned in other posts but it did not help.
Application runs fine on release. Problem seems to be related to importing functions from
a dll which uses atl, while the application does not.

Any idea?

Thanks
UdiRazAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Subrat (C++ windows/Linux)Connect With a Mentor Software EngineerCommented:
I think this may help u.
In VS2008,
project->properties
ConfigurationProperties->C/C++->Code generation->Runtime Library
change here to /MD  or /MT depending ur project.....

Thanks.
0
 
jkrCommented:
The debug runtime DLLs are probably missing on your target machine, which is absolutely normal - MS' license agreement does not allow these to be distributed, only the release versions can be.
0
 
UdiRazAuthor Commented:
I don't think this is the problem since other mfc projects are able to run in debug mode.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
jkrCommented:
You can easily check that by opening your app with the Dependency Walker (www.dependencywalker.com) - does that tool report any DLLs as missing?
0
 
UdiRazAuthor Commented:
thanks, I've tried this tool before (after reading simliar posts) and it gives an error "Warning : At least one module has an unresolved import due to a missing export function in a delay - load dependent module".
My main application is using mfc but not using atl, and the dll uses both, although I've tried
changing this and it did not help. I'm exporting classes using dllexport, but there is a warning
regarding CString in header files.
0
 
jkrCommented:
If that is about mpr.dll, don't even bother - this message is explained in the FAQ. Any others reported as missing?
0
 
UdiRazAuthor Commented:
this is not regarding mpr dll. it is related to exporting functions from an MFC dll I'm creating.
The weird thing is that it works in release.
0
 
UdiRazAuthor Commented:
Well done. This solved the issue.
Thanks
0
 
UdiRazAuthor Commented:
Simple and effective. Well done.
0
 
Subrat (C++ windows/Linux)Software EngineerCommented:
U r wel - come.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.