J
jay.oleary
Hello:
I'm getting E_NOINTERFACE when I try to create an outlook.application
object in vc++ (2005) on xp running outlook 2003.
HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
CLSID clsidOutlook;
CLSIDFromProgID(L"Outlook.Application", &clsidOutlook);
CComPtr<IDispatch> OutlookPtr;
hr = CoCreateInstance(clsidOutlook, NULL, CLSCTX_LOCAL_SERVER,
IID_IDispatch,(void **)&OutlookPtr);
hr is always E_NOINTERFACE...
I'm getting E_NOINTERFACE when I try to create an outlook.application
object in vc++ (2005) on xp running outlook 2003.
HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
CLSID clsidOutlook;
CLSIDFromProgID(L"Outlook.Application", &clsidOutlook);
CComPtr<IDispatch> OutlookPtr;
hr = CoCreateInstance(clsidOutlook, NULL, CLSCTX_LOCAL_SERVER,
IID_IDispatch,(void **)&OutlookPtr);
hr is always E_NOINTERFACE...