如何完全消除VCRT 9.0链接时间依赖性? [英] How to fully eliminate VCRT 9.0 link time dependencies?
问题描述
我确实有基于VCP2008的C dll项目,并且我想消除它对VCRT 9.0库的所有链接时间依赖性.我已经从标准系统提供的msvcrt.dll中加载了我需要的所有必需的msvcrt.dll函数,其中LoadLibrary/GetProcAddress/CallFunc都可以正常运行.删除清单是另一种解决方案(一旦我确实完全删除了所有依赖项),但是仍然可以通过使用_except_handler3()函数来对__try/__ catch/__ finally进行依赖.我做了很多谷歌,但找不到任何合适的解决方案,也许我错过了一些.安迪有人知道如何解决这个问题吗?
在此先感谢
K.
Hi,
i do have C dll project based on VCP2008 and i would like to eliminate all link time dependencies of it to the VCRT 9.0 library. I already LoadLibrary/GetProcAddress/CallFunc all necessary msvcrt.dll functions i need from the standard system supplied msvcrt.dll and this works fine. Removing the manifest would be another solution (once i do have fully removed all dependencies), but there is still the dependency on the __try/__catch/__finally by using the _except_handler3() function. I did google a lot, but could not find any suitable solution for this, maybe i missed something. Anybody andy idea how to solve this?
Thanks in advance
K.
推荐答案
解决方案是使用编译器标志"/MT"来静态地链接函数.希望这会有所帮助,...
The solution is to use the Compiler Flag "/MT" to link statically agains the functions. Hope this helps,...
这篇关于如何完全消除VCRT 9.0链接时间依赖性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!