您的位置:首页 > 其它

When To initialize global and static data For DLL

2009-07-10 18:15 423 查看
As we all know, dll's entry point is DllMain(). Now consider when to initialize all global and static data, the time happens earlier than calling DllMain()!

You can easily know this by debugging.

In CRTMainStartUp(),

First: _INIT_CRT --- to do globa and static initalization.

Second: call DllMain.

Remember this.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐