第一、
CString sTxt;
sTxt.Format("%s", "Ha, This is a CString");
LPCTSTR scStr=(LPCTSTR)sText;
第二、
CString szString;
LPCTSTR lpszString = szString.GetBuffer(szString.GetLength());
_____________________________________________________________
MessageBox(psw);
m_nId = atoi(ID.GetBuffer(ID.GetLength()));
评论