Error C2065: "CoInitializeEx": undeclared identifier
When trying to use hres = CoInitializeEx(0, COINIT_MULTITHREADED);
error C2065: "CoInitializeEx": undeclared identifier
I've already included:
#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <comdef.h>
#include <Wbemidl.h>
in my cpp file.
Please help.
Thanks, Nehu
+1
Neha
source
to share