开发者

How to add two pointers?

开发者 https://www.devze.com 2023-03-18 01:37 出处:网络
How to add parameterB and pictureName? I got an error that says: \'+\': cannot add two pointers. CString parameterA = _T(\"\\\"\") + mycustompath + _T(\"identify.exe\\\"\");

How to add parameterB and pictureName? I got an error that says: '+': cannot add two pointers.

  CString parameterA = _T("\"") + mycustompath + _T("identify.exe\"");  
  CString parameterB = _T(" -format \"%w\" ") + _T("\"") + mycustompath;
  C开发者_Go百科String parameterC = parameterB + pictureName + _T("\"");


if you replace all _T("...") with CString( _T("...") ) it will work 100%


You should make CStrings out of all the string literals, then it should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消