Search code examples
c++visual-c++cstring

How to add two pointers?


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;
  CString parameterC = parameterB + pictureName + _T("\"");

Solution

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