[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] Replace deprecated WSAStringToAddressA


On 7/06/17 07:40, Chris Ruehl wrote:
> -    rc = WSAStringToAddressA((LPSTR) str,
> +    rc = WSAStringToAddressW((LPWSTR) str, 

Hi Chris,


Does the cast from char * to LPWSTR really work that way? I'm not very
well experienced in Windows programming but if I recall properly you're
supposed to convert the C string into a unicode wide string before using
the -W family functions. Am I mistaken?


Thanks,


Aris



Follow-Ups:
Re: [Patch] Replace deprecated WSAStringToAddressAChris Ruehl <chris.ruehl@xxxxxxxxxxxx>
References:
[Patch] Replace deprecated WSAStringToAddressAChris Ruehl <chris.ruehl@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org