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