![]() |
| 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. |
|
|||||||
| Tags: 2005, create, e_nointerface, getting, outlookapplication, trying |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |