热点推荐

查看: 389|回复: 1
收起左侧

[未解决] vc6.0 OK后移植到vs2012报错,是不是需要设置什么?

[复制链接]

该用户从未签到

2

主题

6

帖子

30

积分

Rank: 1

积分
30
发表于 2018-5-9 23:18:25 | 显示全部楼层 |阅读模式

51Halcon诚邀您的加入,专注于机器视觉开发与应用技术,我们一直都在努力!

您需要 登录 才可以下载或查看,没有帐号?会员注册

x
  1. 1>------ Rebuild All started: Project: Matching, Configuration: Debug Win32 ------
  2. 1>Build started 2018/5/9 星期三 下午 10:59:03.
  3. 1>InitializeBuildStatus:
  4. 1>  Touching ".\Debug\Matching.unsuccessfulbuild".
  5. 1>GenerateTargetFrameworkMonikerAttribute:
  6. 1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
  7. 1>ClCompile:
  8. 1>  StdAfx.cpp
  9. 1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
  10. 1>  Matching.cpp
  11. 1>  MatchingDlg.cpp
  12. 1>MatchingDlg.cpp(254): error C2664: 'HalconCpp::get_image_pointer1' : cannot convert parameter 2 from 'Hlong *' to 'HalconCpp::HTuple *'
  13. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  14. 1>MatchingDlg.cpp(282): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  15. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  16. 1>MatchingDlg.cpp(323): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  17. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  18. 1>MatchingDlg.cpp(399): error C2664: 'HalconCpp::area_center' : cannot convert parameter 2 from 'Hlong *' to 'HalconCpp::HTuple *'
  19. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  20. 1>MatchingDlg.cpp(426): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  21. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  22. 1>MatchingDlg.cpp(431): error C2664: 'HalconCpp::create_shape_model' : cannot convert parameter 10 from 'Hlong *' to 'HalconCpp::HTuple *'
  23. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  24. 1>MatchingDlg.cpp(434): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  25. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  26. 1>MatchingDlg.cpp(470): error C2664: 'HalconCpp::open_window' : cannot convert parameter 8 from 'Hlong *' to 'HalconCpp::HTuple *'
  27. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  28. 1>MatchingDlg.cpp(501): error C2664: 'HalconCpp::get_image_pointer1' : cannot convert parameter 2 from 'Hlong *' to 'HalconCpp::HTuple *'
  29. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  30. 1>MatchingDlg.cpp(530): error C2664: 'HalconCpp::read_shape_model' : cannot convert parameter 2 from 'Hlong *' to 'HalconCpp::HTuple *'
  31. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  32. 1>MatchingDlg.cpp(591): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  33. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  34. 1>MatchingDlg.cpp(597): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  35. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  36. 1>MatchingDlg.cpp(616): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  37. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  38. 1>MatchingDlg.cpp(622): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  39. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  40. 1>MatchingDlg.cpp(642): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  41. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  42. 1>MatchingDlg.cpp(648): error C2664: 'HalconCpp::count_seconds' : cannot convert parameter 1 from 'double *' to 'HalconCpp::HTuple *'
  43. 1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
  44. 1>  Generating Code...
复制代码

发帖求助前要善用论坛搜索功能,那里可能会有你要找的答案;

如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子分类或者标题前面加上【已解决】

回报帮助你解决问题的坛友,右下角【免费评分】赠与对方视觉币和热心值,伸手党遭人唾弃,做一个热心并受欢迎的人!

  • TA的每日心情
    点赞
    11 小时前
  • 签到天数: 609 天

    连续签到: 3 天

    [LV.9]以坛为家II

    350

    主题

    1330

    帖子

    6573

    积分

    Rank: 9

    积分
    6573

    突出贡献优秀版主荣誉管理论坛元老切换助手验证会员最佳新人

    发表于 2018-5-10 08:42:48 | 显示全部楼层
    通过你编译的日志来看,应该是类型错误导致的,比如将Hlong换成HTuple试试,同时有的是不支持double的你要强制转换到HTuple!
    无效附件更新 权限提升操作 删帖申请 举报以及其他需要帮助请加入QQ群:214663141 广告位招商 有意者联系
    您需要登录后才可以回帖 会员登录 | 会员注册

    本版积分规则

    经营性网站备案信息 经营性网站
    备案信息

    中国互联网举报中心 中国互联网
    举报中心

    中国文明网传播文明 中国文明网
    传播文明

    诚信网站

    深圳市市场监督管理局企业主体身份公示 工商网监
    电子标识