Visual Studio 2005 & Vista

Hi Sam!

I tried to reinstall Visual Studio 2005 and service pack 1 on a clean Vista’s installation and all is fine. The problem seems not to be in the development environment but related to some missing files whether the sdk is not installed. Now I would not say a wrong thing, but it is like that without having installed the SDK I should have in the system the Visual Studio 2005 redistributable package. Is that right?

Okay, it turns out that this is a general problem with Visual Studio 2005 and
Windows Vista. Programs built with Visual Studio 2005 won’t run without the
VC8 C runtime installed.

I’m investigating further.

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Okay, it turns out that this is a general problem with Visual Studio 2005 and
Windows Vista. Programs built with Visual Studio 2005 won’t run without the
VC8 C runtime installed.

Is this problem specific to Vista, or just machines without the
runtime installed?

I guess one thing to find out is whether this still happens when the
runtime library is changed to the non-DLL version in the project’s
"C/C++ code generation" options. I guess it would need to be changed
for SDL, SDLmain and the game project.

“Dependency Walker” is quite handy when trying to check which DLLs
your app requires.
http://www.dependencywalker.com/

Pete

Okay, I figured this out:

The application has failed to start because its side-by-side configuration is
incorrect. Please see the application event log for more detail.

This error message means that you have built an application with Visual Studio
2005 and are trying to run it on a Windows Vista machine that hasn’t had the
Microsoft Visual C/C++ runtime for 2005 installed on it.

Here is detailed information about bundling and installing the C/C++ runtime:
http://msdn2.microsoft.com/en-us/library/ms235316(VS.80).aspx

Note that Visual C++ 2005 Express Edition does not include the redistributable
C/C++ runtime components. You will have to download them from Microsoft using
the link above.

If you’re comfortable building on Linux or Mac OS X, you can use a mingw32
cross-compiler configuration which completely side-steps the C runtime issues:
http://www.libsdl.org/extras/win32/cross/README.txt
This is how SDL.dll was built, to avoid worrying about which version of the
C runtime is available on the target computer.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment