Question

-Part0

My EXE(Debug) using mfc built with vs2012, fails to work on a PC with only vs2013.

Error Information: lacking mfc100ud.dll

It is quite similar when the EXE using mfc built with vs2013 runs on my pc with only vs2012

Error Information: lacking mfc120ud.dll

I think it is because of the building mode for mfc in the properties of building setting. But I do not know how to solve the problem properly.

I try to build the project (release), but the exe immediately breaks down even on my own pc.


-Part1

I try to abandon mfc, and build the core program only with console. The Debug edition can run successfully, but the release edition again breaks down quickly when linking to dll (either built in debug mode or release mode), cout some messy codes.


My question is: How to ensure a mfc EXE or at least a Console EXE smoothly run on most pc with Windows?

Thanks for your help!

Was it helpful?

Solution

You'll need to build in release mode. If you build in debug mode, the EXE expects to have certain DLLs present, and if I recall correctly those are only present when the same version of Visual Studio that you built the app with is installed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top