Onega

a lot of VC++ posts, a few C# posts, and some miscellaneous stuff

Wednesday, June 07, 2006

Statically linked DLL build by VC++ 8.0 still depends on VC++ runtime

I have build a InProc COM DLL via DLL, it is statically linked with ATL and C++ runtime, depends.exe also reported that it does not depends on VC++ dlls, but its manifest file still referred to VC++ 8.0 CRT and I have to copy some VC++ 8.0 redistributes to target machine in order to use it. I have defined #define _WIN32_WINNT 0x0500 in stdafx.h. For an application build by VC++ 8.0 with  _WIN32_WINNT defined, I dont need to redistribute VC++ 8.0 files.

0 Comments:

Post a Comment

<< Home