1、对话框打印char*
char* info="";
::MessageBoxA(this->m_hWnd, info, "", MB_OK);
2、CString转char*
int nLen;
char * wsabuf = NULL;
#ifdef _UNICODE
//CString转换成char*
USES_CONVERSION;
wsabuf = W2A(send_txt_str);//send_txt_str为CString消息
#else
#endif
时间: 2024-10-21 12:53:28