How do I create a Win32 DLL without a dependency on the C runtime

前端 未结 7 1530
天涯浪人
天涯浪人 2020-12-31 15:07

Using Visual Studio 2008 and its C/C++ compiler, how do I create a Win32 DLL that is dependent only on other Windows DLLs, and has no dependency on the Microsoft C runtime?<

相关标签:
7条回答
  • 2020-12-31 15:46

    You'd have to make sure none of the Win32 DLLs you use need the C runtime as well or else you back at square one. Compiling your DLL statically won't matter if one of the Win32 DLLs depends on the C runtime.

    The only way I can see this working is to statically link ALL your dependent DLLs (if that is even feasible) into your DLL. This of course means you would have to recompile to take advantage of any DLL updates.

    0 讨论(0)
提交回复
热议问题