-3

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("\"");
Matteo Italia
  • 123,740
  • 17
  • 206
  • 299
karikari
  • 6,627
  • 16
  • 64
  • 79

2 Answers2

3

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

Kerrek SB
  • 464,522
  • 92
  • 875
  • 1,084
Sasha
  • 846
  • 5
  • 9
0

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

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445