Because there is no way to control the order in which in-process servers are loaded or unloaded, do not callCoInitialize, CoInitializeEx, or CoUninitialize from the DllMain function.
由于无法控制进程内服务器的加载和卸载顺序,所以不能再DllMain函数中调用CoInitializeEx一类函数。
本文讨论了在DLLMain函数中调用CoInitializeEx等函数的问题。由于无法控制进程内服务器的加载和卸载顺序,因此不建议在此函数中进行COM的初始化。
Because there is no way to control the order in which in-process servers are loaded or unloaded, do not callCoInitialize, CoInitializeEx, or CoUninitialize from the DllMain function.
由于无法控制进程内服务器的加载和卸载顺序,所以不能再DllMain函数中调用CoInitializeEx一类函数。
6524

被折叠的 条评论
为什么被折叠?