描述:
我的做法是:
项目-》添加类-》TypeLib中的MFC类,然后选择OFFICE目录中的MSWORD9.OLB
但是在编译时出现了一大堆错误,我的做法不对吗?要如何改正?
正在编译...
stdafx.cpp
f:\vc项目\zs\zs\debug\msword9.tlh(6835) : warning C4003: not enough actual parameters for macro 'ExitWindows'
f:\vc项目\zs\zs\debug\msword9.tlh(6835) : error C2059: syntax error : 'constant'
f:\vc项目\zs\zs\debug\msword9.tlh(15255) : error C2146: syntax error : missing ';' before identifier 'Fonts'
f:\vc项目\zs\zs\debug\msword9.tlh(15255) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15255) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15308) : error C2146: syntax error : missing ';' before identifier 'GetFonts'
f:\vc项目\zs\zs\debug\msword9.tlh(15308) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15308) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15308) : warning C4183: 'GetFonts': missing return type; assumed to be a member function returning 'int'
f:\vc项目\zs\zs\debug\msword9.tlh(15648) : error C2146: syntax error : missing ';' before identifier 'Assistant'
f:\vc项目\zs\zs\debug\msword9.tlh(15648) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15648) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15704) : error C2146: syntax error : missing ';' before identifier 'CommandBars'
f:\vc项目\zs\zs\debug\msword9.tlh(15704) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15704) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15710) : error C2146: syntax error : missing ';' before identifier 'VBE'
f:\vc项目\zs\zs\debug\msword9.tlh(15710) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15710) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
f:\vc项目\zs\zs\debug\msword9.tlh(15772) : error C2146: syntax error : missing ';' before identifier 'FileSearch'
。。。。。。。。
。。。。。。。。
生成日志保存在“file://f:\vc项目\zs\zs\Debug\BuildLog.htm”
zs - 219 个错误,23 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
总是提示msword9.tlh出错????
各位说说如何办才好!!!!!