设置首页收藏本站
开启左侧

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

[复制链接]
weichangmin 发表于 2018-5-9 23:18:25 | 显示全部楼层 |阅读模式
  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...
复制代码
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Criss 发表于 2018-5-10 08:42:48 | 显示全部楼层
通过你编译的日志来看,应该是类型错误导致的,比如将Hlong换成HTuple试试,同时有的是不支持double的你要强制转换到HTuple!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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