Hi,
I get the following error while trying to use hres = CoInitializeEx(0, COINIT_MULTITHREADED);
error C2065: 'CoInitializeEx' : undeclared identifier
I have already included:
#define _WIN32_DCOM
#include <iostream>
using namespace std;
#include <comdef.h>
#include <Wbemidl.h>
in my cpp file.
Kindly help.
Thanks, Neha