Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
http://msdn.microsoft.com/en-us/library/87zae4a3(v=vs.80).aspx
示例如何正确转换字符串
1.
CString test; char buffer[256]; strcpy(buffer, LPCSTR(test));
2.
#include <atlstr.h> CString s = "Hallo"; char *buffer; buffer = s.GetBuffer();