CStringA output = "test abcdefg";
//ch指向的地址和output相同。但由于使用const保证ch不会修改,所以安全.
const char* ch = output;
CStringW output_w = CStringW(output);
this->GetDlgItem(IDC_EDIT_LOG)->SetWindowText(output_w);
CStringA转CStringW
最新推荐文章于 2025-07-11 16:10:28 发布