CString怎样转成char *VS2005中,如何把CString 转成 char * ,用str.GetBuffer(str.GetLength())和 char *
CString怎样转成char *
VS2005中,如何把CString 转成 char * ,
用str.GetBuffer(str.GetLength());
和 char * p = (LPSTR)(LPCTSTR)str;
貌似都不行,同样两种方法在VC6中都可以用,小弟头一次用VS
[解决办法]
WideCharToMultiByte(...)
