最近公司要编写一个 WORD 转换为PDF 的工具
我于是用VC++2008 导入WORD2000的 类型库
导入的时候没有错误,但是把头文件加进来的时候就会报以下错误,在VC++6.0里导入WORD2000的类型库然后编写是不会错的。
所以求高手帮我一下,小弟在这里先谢谢了
:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(6835) : warning C4003: “ExitWindows”宏的实参不足
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(6835) : error C2059: 语法错误 : “常量”
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C2146: 语法错误 : 缺少“;”(在标识符“Fonts”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C2146: 语法错误 : 缺少“;”(在标识符“GetFonts”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : warning C4183: “GetFonts”: 缺少返回类型;假定为返回“int”的成员函数
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C2146: 语法错误 : 缺少“;”(在标识符“Assistant”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C2146: 语法错误 : 缺少“;”(在标识符“CommandBars”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C2146: 语法错误 : 缺少“;”(在标识符“VBE”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C2146: 语法错误 : 缺少“;”(在标识符“FileSearch”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C2146: 语法错误 : 缺少“;”(在标识符“COMAddIns”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C2146: 语法错误 : 缺少“;”(在标识符“LanguageSettings”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C2146: 语法错误 : 缺少“;”(在标识符“AnswerWizard”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15828) : error C2146: 语法错误 : 缺少“;”(在标识符“GetAssistant”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(34088) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(35820) : error C2143: 语法错误 : 缺少“;”(在“Shape::GetScript”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(35820) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
我于是用VC++2008 导入WORD2000的 类型库
导入的时候没有错误,但是把头文件加进来的时候就会报以下错误,在VC++6.0里导入WORD2000的类型库然后编写是不会错的。
所以求高手帮我一下,小弟在这里先谢谢了
:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(6835) : warning C4003: “ExitWindows”宏的实参不足
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(6835) : error C2059: 语法错误 : “常量”
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C2146: 语法错误 : 缺少“;”(在标识符“Fonts”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15255) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C2146: 语法错误 : 缺少“;”(在标识符“GetFonts”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15308) : warning C4183: “GetFonts”: 缺少返回类型;假定为返回“int”的成员函数
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C2146: 语法错误 : 缺少“;”(在标识符“Assistant”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15648) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C2146: 语法错误 : 缺少“;”(在标识符“CommandBars”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15704) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C2146: 语法错误 : 缺少“;”(在标识符“VBE”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15710) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C2146: 语法错误 : 缺少“;”(在标识符“FileSearch”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15772) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C2146: 语法错误 : 缺少“;”(在标识符“COMAddIns”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15796) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C2146: 语法错误 : 缺少“;”(在标识符“LanguageSettings”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15800) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C2146: 语法错误 : 缺少“;”(在标识符“AnswerWizard”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15804) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(15828) : error C2146: 语法错误 : 缺少“;”(在标识符“GetAssistant”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(34088) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(35820) : error C2143: 语法错误 : 缺少“;”(在“Shape::GetScript”的前面)
d:\vsstudio\wordtopdf\wordtopdf\debug\msword9.tlh(35820) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\\MSO.DLL" no_namespace
#import "C:\Program Files\Common Files\Microsoft Shared\Office11\MSO.DLL"
#import "c:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6EXT.olb"
#import "c:\Program Files\Microsoft Office\Office11\MSWORD.olb" \
rename("ExitWindows","_ExitWindows")
#import "c:\Program Files\Microsoft Office\Office11\EXCEL.exe" \
rename("DialogBox","_DialogBox") \
rename("RGB","_RGB") \
exclude("IFont","IPicture")