Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outlook programming in VC++

4 views
Skip to first unread message

Jay B. Harlow [MVP - Outlook]

unread,
Aug 14, 2000, 6:03:29 PM8/14/00
to
Vignessh,
I normally use the following code to import the Outlook Object model into
Visual C++ 6.0...

I normally put this in the stdafx.h include file...

#if defined(USE_OUTLOOK97)
#import "C:\WINDOWS\SYSTEM\STDOLE2.TLB" exclude("IUnknown", "IDispatch")
#import "C:\Program Files\Microsoft Office\Office\MSO97.DLL"
#import "C:\WINDOWS\SYSTEM\FM20.DLL" inject_statement("using namespace
stdole;")
#import <C:\Program Files\Microsoft Office\Office\Msoutl8.olb>
#elif defined(USE_OUTLOOK98)
#import "C:\WINDOWS\SYSTEM\STDOLE2.TLB" exclude("IUnknown", "IDispatch")
#import "C:\Program Files\Microsoft Office\Office\MSO97.DLL"
#import "C:\WINDOWS\SYSTEM\FM20.DLL" inject_statement("using namespace
stdole;")
#import "C:\Program Files\Microsoft Office\Office\Msoutl85.olb"
inject_statement("using namespace stdole;")
#else
#import "C:\WINDOWS\SYSTEM\STDOLE2.TLB" exclude("IUnknown", "IDispatch")
#import "C:\Program Files\Microsoft Office\Office\MSO9.DLL"
#import "C:\WINDOWS\SYSTEM\FM20.DLL" inject_statement("using namespace
stdole;")
#import "C:\Program Files\Microsoft Office\Office\Msoutl9.olb" \
inject_statement("using namespace stdole;")
#endif

Then manual convert the VB samples into C++. VC++ 6.0 #import statement
simplifies this...

Hope this helps
Jay

"Vignessh" <vign...@hotmail.com> wrote in message
news:O6BaeUyAAHA.255@cppssbbsa04...
> Hello Everybody,
> Im a newbie to this forum. Where can I find information on accessing
> Outlook using VC++? I mean reading the mails and stuff like that? Do I
have
> to use the IMAPIxxx interfaces or does Outlook provide some interfaces of
> its own? Any help is appreciated.
> Thanks,
> Vignessh.
>
>


Vignessh

unread,
Aug 15, 2000, 3:13:16 AM8/15/00
to

Thanks a lot Jay. I will try this out.

"Jay B. Harlow [MVP - Outlook]" <jay_h...@email.msn.com> wrote in message
news:e3ZXAyjBAHA.250@cppssbbsa05...

0 new messages