Word Automation Build Errors(On VS 2005)

M

MFC

Hi All,

I have tried following the article http://support.microsoft.com/kb/q238611/
to create an automation client but I get hundreds of errors from
CApplication.h when I build it:
e.g.
debug\excel.tlh(1219) : error C2371: 'FontPtr' : redefinition; different
basic types
debug\excel.tlh(1689) : error C2504: '_IMsoDispObj' : base class undefined
debug\excel.tlh(2237) : error C2061: syntax error : identifier 'MsoRGBType'

Can anyone offer any ideas?

thanks
 
C

Cindy M.

Hi =?Utf-8?B?TUZD?=,
I have tried following the article http://support.microsoft.com/kb/q238611/
to create an automation client but I get hundreds of errors from
CApplication.h when I build it:
e.g.
debug\excel.tlh(1219) : error C2371: 'FontPtr' : redefinition; different
basic types
debug\excel.tlh(1689) : error C2504: '_IMsoDispObj' : base class undefined
debug\excel.tlh(2237) : error C2061: syntax error : identifier 'MsoRGBType'
Well, I dunno... You say you want to automate Word, but the errors you show
all refer to the EXCEL library. Maybe you've set a reference to the wrong
typelib/PIA?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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