UNICODE to ANSI
Posted on 1998-06-29
I have a win32 app in which all strings and chars are defined as UNICODE. Within the app, there exist a number of winsock calls. When I pass a UNICODE string to a winsock function, the winsock function fails. I thought I read somewhere that NT will automatically convert a string to ANSII if that is required by the function. Apparently it is not working in this case. Can someone tell me or show me of an easy way to convert from UNICODE to ANSII?