Search code examples
cwinapi

How do I create a Win32 DLL without MSVCR90D.dll?


I am trying to recreate an existing C Win32 DLL with a single, simple function. I have managed to do this using VS C++ 2008 Express, and my new DLL works on my Vista dev machine, and on the client's XP machine. However, it doesn't work on other sites. I have checked dependencies and my DLL requires MSVCR90D.dll and KERNEL32.dll, where the original DLL only requires KERNEL32.dll.

What is MSVCR90D.dll, and how do I create a simple Win32 DLL without this dependency?


Solution

  • Link with the static version of the C runtime library. The setting is under "Code generation" in the project properties. Then you won't need to worry about the MSVCR* DLLs at all.