有些函数好像没有UNICODE版的怎么办?
如:
wstring request...
hr = send(
sockClient,
(char*)request.c_str()/*这里不能是UNICDEO类型了??,转换后会出错吗*/,
request.length(),
0
);这个也用不了gethostbyname
如:
wstring request...
hr = send(
sockClient,
(char*)request.c_str()/*这里不能是UNICDEO类型了??,转换后会出错吗*/,
request.length(),
0
);这个也用不了gethostbyname
int WideCharToMultiByte(
UINT CodePage,
DWORD dwFlags,
LPCWSTR lpWideCharStr,
int cchWideChar,
LPSTR lpMultiByteStr,
int cbMultiByte,
LPCSTR lpDefaultChar,
LPBOOL lpUsedDefaultChar
);//
int MultiByteToWideChar(
UINT CodePage,
DWORD dwFlags,
LPCSTR lpMultiByteStr,
int cbMultiByte,
LPWSTR lpWideCharStr,
int cchWideChar
);