msppt9.idl to c code

M

Martin Tilsted

I am trying to call the com methods in Powerpoint from a C program,
using only the win32 api. (I can't use mfc or atl due to link issues)

First I need to generate the C header files for all the methods.
To do that i started
Oleview.exe and there I choose file->viewtypelib, then I opened the the
msppt9.olb file. This gave me an idl file, which i saved as msppt9.idl

So far so good, but my problem is that if I run
midl msppt9.idl
I get an error saying
"syntax error : expecting a type specification near "Presentation"

The problem seems to be that there are no forward declaration for
Presentation. If i add
interface Presentation;
That problem is solved, but I got similarly problems for a lot of other
interfaces such as MsoTriState.

I also tried to choose mso9.dll insted of msppt9.olb and then generate a
mso9.idl

But running
midl.exe mso9.idl
gives similarly problems, with missing interfaces starting with
something called Single.

Anyone who knows what I am doing wrong?

Martin T.
 

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