Halcon机器视觉论坛

 找回密码
 会员注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

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

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

[复制链接]

该用户从未签到

2

主题

7

帖子

35

积分

Rank: 1

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

试用员工 |主题 2|帖子 7|积分 35

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的每日心情
    耍酷
    昨天 09:26
  • 签到天数: 658 天

    连续签到: 11 天

    [LV.9]以坛为家II

    354

    主题

    1372

    帖子

    5429

    积分

    Rank: 9

    积分
    5429

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

    发表于 2018-5-10 08:42:48 | 显示全部楼层

    管理员 |主题 354|帖子 1372|积分 5429

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

    本版积分规则

    51Halcon会员技术交流会员技术交流 | 51Halcon官方客服咨询官方客服咨询 | Halcon切换助手使用反馈切换助手使用反馈 | 51Halcon论坛管理团队论坛管理团队

    申请友链| 小黑屋| 手机版| Archiver| Halcon机器视觉论坛  

    粤ICP备15095995号-2 粤公网安备44030602000670号

    Powered by Discuz! X3.4 Licensed© 2015-2019 Comsenz Inc.

    快速回复 返回顶部 返回列表