G
GrkEngineer
I'm trying to use automation in a simple MFC application in VS 2005. I've
created a CApplication class from the PowerPoint library typelib. It creates
the class fine, but it won't compile. There are various variables renamed and
not understood. Here are some examples...
c:\work\powerpointautomation\autoproject\autoproject\capplication.h(3) :
warning C4278: 'RGB': identifier in type library 'C:\\Program
Files\\Microsoft Office\\OFFICE11\\msppt.olb' is already a macro; use the
'rename' qualifier
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(414) :
error C2371: 'FontPtr' : redefinition; different basic types
c:\program files\microsoft visual studio 8\vc\include\comdef.h(312) : see
declaration of 'FontPtr'
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(1130) :
error C2146: syntax error : missing ';' before identifier 'GetRGB'
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(1963) :
error C2061: syntax error : identifier 'MsoRGBType'
And many more.
created a CApplication class from the PowerPoint library typelib. It creates
the class fine, but it won't compile. There are various variables renamed and
not understood. Here are some examples...
c:\work\powerpointautomation\autoproject\autoproject\capplication.h(3) :
warning C4278: 'RGB': identifier in type library 'C:\\Program
Files\\Microsoft Office\\OFFICE11\\msppt.olb' is already a macro; use the
'rename' qualifier
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(414) :
error C2371: 'FontPtr' : redefinition; different basic types
c:\program files\microsoft visual studio 8\vc\include\comdef.h(312) : see
declaration of 'FontPtr'
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(1130) :
error C2146: syntax error : missing ';' before identifier 'GetRGB'
c:\work\powerpointautomation\autoproject\autoproject\debug\msppt.tlh(1963) :
error C2061: syntax error : identifier 'MsoRGBType'
And many more.