我有CSting值 想赋给char a[10]怎么弄?????
------解决方案--------------------
(Unicode 字符集):
CString str = _T("123");
char chelp[10];
strcpy(chelp,str);
数组末尾还有个0,想去掉也可以。好像是用getbuffer
------解决方案--------------------
使用strcpy
------解决方案--------------------
char szBuf[max] = {0};
CString strBuf = "CStringConvertToCharPointer";
strcpy(szBuf, strBuf.GetBuffer(0));