"MikeMikeMike" <Mi**********@discussions.microsoft.coma écrit dans le
message de news:
75**********************************@microsoft.com...
Hi, I've made som applications with VS 2005 and now I try to distribute
them
to another machine. This aint working unless that machine has also got VS
2005 installed.
I get an error that looks like this (translated from swedish): "This
program
could not start as its configuration is wrong. The problem might be
corrected
if you reinstall the program."
The program is very small and I only exported the .exe file.
Did anyone see this before?
Use depends (
www.dependencywalker.com) on the target machine to see what is
the mising DLL.
I suspect you are missing the CRT dll (eg, msvcrt80.dll and msvcp80.dll).
Visual 2005 has introduced a versionning scheme aimed at reducing DLL hell.
With this model, an exe specifies in a manifest it's exact dependencies
(using checksums of the required DLLs). With Windows XP and up, the system
can have multiple versions of the same DLL installed on a special "side by
side" system folder.
Although the whole idea behind this evolution is good, I believe MS missed
it's goal with regard to usability, since redistribution of those
"versionned" exe and DLLs can be quite problematic. Here is a good entry
point concerning redistribution of the new CRT :
http://msdn2.microsoft.com/en-us/library/ms235299.aspx
Arnaud
MVP - VC