In vc6,The code
CString strData;
int count=3;
strData = strData.Delete(0,count);//error
execute perfectly, But In vc9 it gives an error that error C2593: 'operator =' is ambiguous
can i use only
strData.Delete(0,count);
In vc6,The code
CString strData;
int count=3;
strData = strData.Delete(0,count);//error
execute perfectly, But In vc9 it gives an error that error C2593: 'operator =' is ambiguous
can i use only
strData.Delete(0,count);
CString::Delete
returns an int
. This is probably not what you're like to assign to strData
. Just omit the strData =
part, the Delete
modifies strData
anyway.