Harry

Harry

  • NA
  • 4
  • 0

dynamically linking with msvcrt.dll using modern visual studio version

Jan 9 2009 8:53 AM
Dear,

I have used all Visual Studio versions from version 6.0 up to Visual Studio 2008.

All versions newer then 6.0 create a dependency on msvcrxx.dll, that's included with that particular Visual Studio version, after compiling the exe file.
For example: Visual Studio 2005 uses msvcr80.dll
By consequence that compiled exe can't run on windows that doesn't have that particular Visual Studio version installed.
Only Visual Studio 6.0 makes a dependency on msvcrt.dll allowing your exe to run on all windows versions because msvcrt.dll is included in all windows versions.

Read the following website for detailed explanation of what I mean: http://kobyk.wordpress.com/2007/07/20/dynamically-linking-with-msvcrtdll-using-visual-c-2005/

Does anybody maybe knows how to compile an exe file using a Visual Studio version newer then version 6.0 without having a depency on msvcrxx.dll that's included with that particular Visual Studio version?

thx in advance!
Harry