Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp

Geek News

getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp
jay.oleary[ at ]gmail.com 2/16/2006 10:05:25 PM
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...

Re: getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp
jay.oleary[ at ]gmail.com 2/17/2006 2:29:04 PM
hmmmm....looks like a security/outlook2003 issue. The above works on
my home machine the only difference being outlook 2000.

Still, there must be a way to get around it...I'm trying to do
something similiar to google desktop's "view in outlook" by launching
outlook with a specific email.

Is there another way to do this without using COM?

Re: getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 2/17/2006 5:18:55 PM
Can you create a vbs file that calls CreateObject("Outlook.Application")? Do
you have any AV products (McAffee, Norton, etc) installed?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

<jay.oleary[ at ]gmail.com> wrote in message
news:1140186544.442347.282700[ at ]g47g2000cwa.googlegroups.com...
[Quoted Text]
> hmmmm....looks like a security/outlook2003 issue. The above works on
> my home machine the only difference being outlook 2000.
>
> Still, there must be a way to get around it...I'm trying to do
> something similiar to google desktop's "view in outlook" by launching
> outlook with a specific email.
>
> Is there another way to do this without using COM?
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net