C++ & Project 2003

I

Ivor Evans

Hello

I am interested in using MFC C++ 6 to interogate an active MS Project 2003
file to produce custom reports.

I have been looking around for documentation to get me off & running.

I can't find any - anybody got any advice or tips on where I should be
looking?

Thanks

Ivor
 
R

Rod Gill

Firstly C++ automating any Office products will take much longer than using
VB. For example Sort (and some other) methods have around 20 parameters. In
VB they are optional, can be named and you only specify what you want. In
C++ and C# all parameters must be present which makes for slow coding and
harder to read code.

Start by coding what you want in Project VBA then convert to C equivalent or
copy / Paste / Edit in VB - again why VB is quicker to develop in than C
against Office programs. Can you create a separate VB dll for the
automation?

Alternatively use oledb to read Project 2003 data (note that oledb is
unlikely to be supported for Project 12 .mpp files when it comes time to
upgrade). See the pjoledb.htm file in one of Project's program folders (or
the Project CD). Oledb however is a read only interface.
 
B

Brian Leach

As far as documentation, you should start with the Project 2003 SDK. To get
there fast, Google pj11sdk2003.exe and it should be high in the search
results.

I agree with Rod, though; you should probably think about doing it in VB.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top