Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / May 2004

Tip: Looking for answers? Try searching our database.

How to gain access to the Outlook object model from Visual C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ha See Hung - 20 May 2004 06:56 GMT
Can anyone out there please enlighten me on how to gain access to the
Outlook object model from Visuall C++?

Using the following function, one can obtain an IDispatch pointer to the
native object model of Word, Excel and Powerpoint, but I have not been able
to do so with MS Outlook:-

HRESULT hr = AccessibleObjectFromWindow(GetFocus(), OBJID_NATIVEOM,
IID_IDispatch, (void**) &pDisp);

Help from anyone will be very much appreciated.

Bennet
Matt Fletcher - 20 May 2004 16:07 GMT
The standard way is to write a COM add-in which implements
IDTExtensibility2 - the IDispatch pointer to the application object will be
passed to your add-in as the first parameter to OnConnection. Or am I
missing the point of your question?

> Can anyone out there please enlighten me on how to gain access to the
> Outlook object model from Visuall C++?
[quoted text clipped - 9 lines]
>
> Bennet
Ha See Hung - 27 May 2004 01:18 GMT
Thank you.  But this is the way to do in VB.  Can anybody advise me on how
to obtain an IDispatch pointer to the Outlook object model from Visual C++?

Bennet
> The standard way is to write a COM add-in which implements
> IDTExtensibility2 - the IDispatch pointer to the application object will be
[quoted text clipped - 15 lines]
> >
> > Bennet
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.