c2665专题

报错:c2665 ”loadimage“没有重载函数可以转换所有参数类型

解决方法: 右键项目选择属性-》高级-》字符集-》使用多字节字符集-》确定

error C2665: none of the 2 overloads could convert all the argument types

error C2665: none of the 2 overloads could convert all the argument types    2 个重载中没有一个可以转换所有参数类型这个错误就是你调用的函数中的参数类型不匹配。我用的从cv::rectangle,参数应该是Mat型,而CvRectangle中的参数应该是Iplimage*型的,把之前的代码调用过来就出现了上面的错误。