With CSocket
, I want to make a connect with an IP address.
CSocket client;
client.Create();
client.Connect(IP, 80);
But IP
is defined WCHAR ip[16];
client.Connect(IP, 80)
requires IP
is LPCTSTR
type
How can I convert from WCHAR
to LPCTSTR
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…