in**@mediaclubr oyale.com wrote:
Please see MS Knowledgebase Article ID : 220600
Last Review : June 29, 2004
Revision : 1.0
How To Automate Outlook Using Visual C++/MFC
-- the code won't compile without the file msoutl.h -- can't seem to
find it anywhere on the web -- most Outlook developers are in vb.net,
not C++
-- can't generate the file -- so was hoping someone could email it to
me -- info at mediaclubroyale dot com. Thanks.
"in**@u-s-tech.com" wrote:
Don't any of you MVPs have a copy of this file -- msoutl.h-- it's
referenced in lots of MS sample code.
Have you actually read the instructions in that KB article?
4. Bring up the ClassWizard (Control-W) click the Automation Tab, and choose
"From a type library" under the Add Class menu.
5. In the dialog box that comes up, navigate to the directory where Outlook
is installed, and choose the Outlook type library (see table below). Select
all the items it finds, and click OK to have ClassWizard generate MFC
wrapper classes for all of them: Outlook Version Type Library
97 msoutl8.olb
98 msoutl85.olb
2000 msoutl9.olb
2002 msoutl.olb
2003 msoutl.olb
Following those steps will PRODUCE msoutl.h, assuming you have Outlook 2002
or 2003. Note that those steps are for VC6. For VC7.1, the procedure to
get the MFC class wizard to produce the header file is no doubt different
(ask on the MFC group if you can't figure out how to do it).
If you're not using MFC, then the procedure givein in the KB article is not
relevant - you should use #import instead.
-cd