1、将CString(unicode)转换为char*(ANSI)

CString strServIP;
pChat->GetDlgItemText(IDC_IP,strServIP);

char strAddr[16] = {0};
USES_CONVERSION;
strcpy_s(strAddr,16,T2A(strServIP));

 

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2021-06-30
  • 2021-06-29
  • 2021-06-07
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2021-06-01
  • 2022-01-02
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案