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