I've tried a couple of methods and I can't get it to work. I'm trying to change the extension of a file.
CString targetfile = "dhgdgjf.tx t";
LPTSTR p = targetfile.GetB uffer();
targetfile.Find (".txt");
lstrcpy( p, _T(".doc") );
targetfile.Rele aseBuffer();
CString targetfile = "dhgdgjf.tx t";
LPTSTR p = targetfile.GetB uffer();
targetfile.Find (".txt");
lstrcpy( p, _T(".doc") );
targetfile.Rele aseBuffer();
Comment