CString str;
CFile DstFile;
DstFile.Open(....);
GetDlgItemText(IDC_EDIT1,str); //有中文
DstFile.Write(这里应该怎么写啊?);
CFile DstFile;
DstFile.Open(....);
GetDlgItemText(IDC_EDIT1,str); //有中文
DstFile.Write(这里应该怎么写啊?);
2.DstFile.Write(str,str.GetLength());
00000000h: 32 00 30 00 30 00 35 00 2D 00 37 00 2D 00 39 00 ; 2.0.0.5.-.7.-.9.
00000010h: 20 00 31 00 32 00 30 00 30 00 35 00 2D 00 37 00 ; .1.2.0.0.5.-.7.
00000020h: 2D 00 39 00 20 00 31 00 32 00 30 00 30 00 35 00 ; -.9. .1.2.0.0.5.
00000030h: 2D 00 37 00 2D 00 39 00 20 00 31 00 ; -.7.-.9. .1.请问这样怎么解决啊?
int GetLength( ) const;Return ValueA count of the bytes in the string.ResCall this member function to get a count of the bytes in this CString object. The count does not include a null terminator.For multibyte character sets (MBCS), GetLength counts each 8-bit character; that is, a lead and trail byte in one multibyte character are counted as two bytes.