office第三方控件DsoFramer2.3.0.0编译失败

bubududu 2009-09-14 08:49:11
就是网上说的那个最新版,可以支持2007的,我下载下来之后编译,有无数的错误,全部在msword.tlh里面,请教该怎么解决呢,是缺少什么东西吗?


:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58007) : error C2556: 'enum MSWord::XlDisplayBlanksAs __thiscall MSWord::Chart::GetDisplayBlanksAs(long)' : overloaded function differs only by return type from 'enum Office::XlDisplayBlanksAs _
_thiscall MSWord::Chart::GetDisplayBlanksAs(long)'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44860) : see declaration of 'GetDisplayBlanksAs'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58007) : error C2371: 'GetDisplayBlanksAs' : redefinition; different basic types
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44860) : see declaration of 'GetDisplayBlanksAs'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58008) : error C2244: 'Chart::PutDisplayBlanksAs' : unable to resolve function overload
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58016) : error C2244: 'Chart::ApplyDataLabels' : unable to resolve function overload
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58024) : error C2556: 'enum MSWord::XlRowCol __thiscall MSWord::Chart::GetPlotBy(void)' : overloaded function differs only by return type from 'enum Office::XlRowCol __thiscall MSWord::Chart::Ge
tPlotBy(void)'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44913) : see declaration of 'GetPlotBy'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58024) : error C2371: 'GetPlotBy' : redefinition; different basic types
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44913) : see declaration of 'GetPlotBy'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58025) : error C2244: 'Chart::PutPlotBy' : unable to resolve function overload
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58029) : error C2244: 'Chart::Axes' : unable to resolve function overload
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58046) : error C2556: 'enum MSWord::XlBarShape __thiscall MSWord::Chart::GetBarShape(void)' : overloaded function differs only by return type from 'enum Office::XlBarShape __thiscall MSWord::Cha
rt::GetBarShape(void)'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44981) : see declaration of 'GetBarShape'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58046) : error C2371: 'GetBarShape' : redefinition; different basic types
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(44981) : see declaration of 'GetBarShape'
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58047) : error C2244: 'Chart::PutBarShape' : unable to resolve function overload
e:\officeocx\program\dsoframer2.3.0.0\debug\MSWORD.tlh(58098) : error C2556: 'enum MSWord::XlLegendPosition __thiscall MSWord::Legend::GetPosition(void)' : overloaded function differs only by return type from 'enum Office::XlLegendPosition __thiscal
l MSWord::Legend::GetPosition(void)'
...全文
213 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
bubududu 2009-09-15
  • 打赏
  • 举报
回复
我用的是2007的,不支持2003的其实无所谓,现在是编译都通不过,不过我去试试2003的库
蒋晟 2009-09-15
  • 打赏
  • 举报
回复
import的类型库需要用2003的,不然你的程序不支持Office 2003。
WaistCoat16 2009-09-14
  • 打赏
  • 举报
回复
#import 语句是怎么加的?
bubududu 2009-09-14
  • 打赏
  • 举报
回复
我下载的代码是vc6.0的,我用的也是,其他的都不知道了
WaistCoat16 2009-09-14
  • 打赏
  • 举报
回复
你用的编译环境跟原来的是一样的嘛?编译器版本是否一样的啊?
bubududu 2009-09-14
  • 打赏
  • 举报
回复
我就是来问是不是少了什么东西....
我看他import了一堆olb以及dll,这些路径都是对的
feilinhe 2009-09-14
  • 打赏
  • 举报
回复
没用过这个东西,不过编译之前,那些相关的库啊,目录啊,路径什么的都对吗

3,248

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧