阅读背景:

从DllMain或全局初始化器调用c++运行时

来源:互联网 

The question is inspired by this discussion.
It seems that fears concerning C++ runtime invokations from DllMain (or from global variables ctor's) are sligtly outdated. I'm using global initializers in dlls frequently without any faults, and now I've run a special test program (compiled with VC2010 Express w/o SP) containing exe module with static runtime linkage and dll with dynamic one. Dll is manualy loaded from exe by LoadLibrary(). It




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: