A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , ,

getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp





 
 
Thread Tools Display Modes
  #1  
Old February 16th 06, 10: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
  #2  
Old February 17th 06, 02:29 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

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?

  #3  
Old February 17th 06, 05:18 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 1,517
Default getting E_NOINTERFACE trying to create outlook.application in vc++ (2005) on xp

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

wrote in message
oups.com...
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?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook.exe won't shut down when closing the application. Ron S Outlook - Installation 1 February 23rd 06 07:59 PM
Outlook.Application handles Quit donald Add-ins for Outlook 3 February 16th 06 02:45 PM
Outlook Application variable problem Ram Add-ins for Outlook 0 February 12th 06 02:25 PM
How do I get Holidays to install past 2005 in Outlook 2002 l00nyt00n Outlook - Calandaring 1 January 31st 06 02:38 AM
how do i add holidays in Outlook beyond 2005 ? Larry Outlook - Calandaring 1 January 17th 06 12:18 PM


All times are GMT +1. The time now is 01:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Advertising - Internet Advertising - Mobile Phone - Refinance - Mortgages