CString 转 Char*
void fun()
{
char c_psw[60] = { 0 }; //申请c_psw内存
CString psw = "AAA";
strcpy(c_psw, (LPCTSTR)psw);
//函数退出,释放c_psw内存
}
CString 转 Char*
void fun()
{
char c_psw[60] = { 0 }; //申请c_psw内存
CString psw = "AAA";
strcpy(c_psw, (LPCTSTR)psw);
//函数退出,释放c_psw内存
}