想试着写一个ActiveQt程序,调用PowerPoint的接口,于是就在pro中加了这两行
CONFIG += console qaxcontainer
TYPELIBS = $$system(dumpcpp -getfile {91493440-5A91-11CF-8700-00AA0060263B})
顺利出来了MSPPT.cpp和MSPPT.h,但是编译的时候却蹦出来了大量的
In file included from MSPPT.cpp:9:0:
MSPPT.h:30:10: error: use of enum 'MsoTriState' without previous declaration
MSPPT.h:35:10: error: use of enum 'MsoFeatureInstall' without previous declaration
MSPPT.h:37:10: error: use of enum 'MsoFileDialogType' without previous declaration
MSPPT.h:38:10: error: use of enum 'MsoAutomationSecurity' without previous declaration
MSPPT.h:44:10: error: use of enum 'MsoFileValidationMode' without previous declaration
MSPPT.h:45:10: error: use of enum 'MsoColorType' without previous declaration
MSPPT.h:46:10: error: use of enum 'MsoThemeColorIndex' without previous declaration
MSPPT.h:48:10: error: use of enum 'MsoExtraInfoMethod' without previous declaration
MSPPT.h:49:10: error: use of enum 'MsoFarEastLineBreakLanguageID' without previous declaration
MSPPT.h:50:10: error: use of enum 'MsoLanguageID' without previous declaration
之类的错误信息
谷歌了一下,似乎是因为MinGW不不支持ActiveQt?还请高手帮我确证一下。
其实我是想获得当前打开的ppt文档的路径,然后将它复制到其他的地方(因为上课的时候总会有老师不把上课的ppt留下来,搞得没法复习……),如果确实不支持,那有没有其他的方法来实现这一功能?