描述:
我不想把msword9.olb变成.h和.cpp文件加入工程,那样的话类视图会出现一堆word类,大多数都用不着,看着很头疼。
我希望像com一样调用msword9.olb,但我用#import把msword9.olb加入工程时,编译会出现205个如下的错误,请问各位怎么解决?是不是VC调用word功能不可以用这种方法?
我在网上看到,说可以import,但我不知道怎么实现,参考连接:
http://support.microsoft.com/default.aspx?scid=kb;zh-cn;238972
debug\msword9.tlh(3657) : error C2146: syntax error : missing ';' before identifier 'Assistant'
debug\msword9.tlh(3657) : error C2501: 'AssistantPtr' : missing storage-class or type specifiers
debug\msword9.tlh(3657) : error C2501: 'Assistant' : missing storage-class or type specifiers
debug\msword9.tlh(3713) : error C2146: syntax error : missing ';' before identifier 'CommandBars'
debug\msword9.tlh(3713) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers
......
....