本文介绍了错误C2679:二进制'=':找不到哪个运算符采用'unsigned short [260]'类型的右手操作数(或者没有可接受的转换)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好,我正在将MFC解决方案从VC ++ 6.0升级到Visual Studio 2013,下面的编译问题已经进入VC ++ 2013,同样的代码在VC ++ 6.0中运行正常。以下是导致遭遇错误的代码。    


Hello, I am upgrading MFC solution from VC++ 6.0 to Visual Studio 2013, below compilation issue is getting in VC ++ 2013 and the same piece of code works fine in VC++ 6.0. Below is the code causing the subjected error.    

推荐答案

那么DataRec和特别是成员变量CustNo 如何定义? DataRec不是标准类,因此必须在代码中的某个位置定义它。

so how is DataRec and specially the member variable CustNo defined? DataRec is not a Standard class, so it must be defined in your code somewhere.

问候,Guido


这篇关于错误C2679:二进制'=':找不到哪个运算符采用'unsigned short [260]'类型的右手操作数(或者没有可接受的转换)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 00:59