1、将CString(unicode)转换为char*(ANSI)
CString strServIP;
pChat->GetDlgItemText(IDC_IP,strServIP); char strAddr[] = {};
USES_CONVERSION;
strcpy_s(strAddr,,T2A(strServIP));
2023-12-06 16:18:58
1、将CString(unicode)转换为char*(ANSI)
CString strServIP;
pChat->GetDlgItemText(IDC_IP,strServIP); char strAddr[] = {};
USES_CONVERSION;
strcpy_s(strAddr,,T2A(strServIP));
下一篇:c#摄像头编程实例 (转)