标签: c++ visual-studio-2010 visual-studio visual-studio-2008 visual-c++
答案 0 :(得分:0)
1
CString test; char buffer[256]; strcpy(buffer, LPCSTR(test));
2
#include <atlstr.h> CString s = "Hallo"; char *buffer; buffer = s.GetBuffer();
答案 1 :(得分:0)
http://msdn.microsoft.com/en-us/library/87zae4a3(v=vs.80).aspx
如何正确转换字符串的示例