CString ip,text; UINT port =GetDlgItemInt(IDC_PORT);
m_sock.SendTo(text,text.GetLength(),port,ip);
CString ip;UINT port;
wchar_t s[9999];
int n=ReceiveFrom(s,9999-1,ip,port);
if(n<=0)
return;
s[n]='\0';
CString str,readonly;
str=s;
收到的資料個數是對的,但是只顯示一半的字符,怎么解決?VS下unicode 字符集真麻煩 網上看了一些字符集轉換的方法,也行不通,如果轉為多位元組集很多代碼又要改
uj5u.com熱心網友回復:
打開include\tchar.h一眼吧。uj5u.com熱心網友回復:
wchar_t s[9999]; char s[9999];轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/120587.html
