coinitialize

  • 网络初始化

coinitializecoinitialize

coinitialize

初始化

使用ADO连接数据库,因为要使用COM,需要初始化(CoInitialize).然后就可以生成接口的对象操作,代码如下:作者:querw …

1
If you did not select ActiveX controls when you created the MFC project, you need to call CoInitialize and CoUninitialize in your main code. 如果在创建MFC项目时未选择“ActiveX控件”,则需要在主代码中调用CoInitialize和CoUninitialize。
2
Selecting this option ensures that the application calls CoInitialize and CoUninitialize. 选择此选项可确保应用程序调用CoInitialize和CoUninitialize。
3
Changes the default apartment settings when an unmanaged function calls CoInitialize. 在非托管函数调用CoInitialize时更改默认单元设置。