为什么我用不起??头文件也包括了,还是说
error C2065: 'CoInitializeSecurity' : undeclared identifier使用
#define _WIN32_WINNT 0x0400
#define _WIN32_DCOM#include <objbase.h> 了还是不行???
但是我看别人的工程里面用了CoInitializeSecurity,在我的机器也可以编译通过。就是我自己的工程为什么就不能识别了呢????
那位给我个解决的方法~~
error C2065: 'CoInitializeSecurity' : undeclared identifier使用
#define _WIN32_WINNT 0x0400
#define _WIN32_DCOM#include <objbase.h> 了还是不行???
但是我看别人的工程里面用了CoInitializeSecurity,在我的机器也可以编译通过。就是我自己的工程为什么就不能识别了呢????
那位给我个解决的方法~~
add _WIN32_DCOM
应该就可以了,你试试?
你在stdafx.h 的头部定义也一样的效果。