View Single Post
  #1  
Old February 16th 06, 11:05 PM posted to microsoft.public.outlook.program_addins
jay.oleary@gmail.com
external usenet poster
 
Posts: 2
Default getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp

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);


CComPtrIDispatch OutlookPtr;
hr = CoCreateInstance(clsidOutlook, NULL, CLSCTX_LOCAL_SERVER,
IID_IDispatch,(void **)&OutlookPtr);


hr is always E_NOINTERFACE...

Ads
 

Mortgage Calculator - Daily Horoscopes - Credit Counseling - Adverse Credit Remortgage - Apply for Credit Card