PDA

View Full Version : Wstr_to_str


ngotl
07-23-2002, 01:21 PM
Hello,
I would like to ask whether there is anyone know why when i use WSTR_TO_STR to convert a AECHAR string to a char string, the char string will only have the copy up to the white space of AECHAR string. For example, if AECHAR string is "AB C" , then the char string will have only "AB". Please help. Thank you for your time.
Luong:eek:

AliNaqvi
07-23-2002, 07:37 PM
Hi,
Actually that's not the case.Just pay attention to the nsize parameter you are passing in WSTR_TO_STR function. As this is the value which tells this function to copy how many characters from source to destination.


Note:
WSTR_TO_STR function has been deprecated in SDK 1.1


Hope it helps.

Regards,
Ali Naqvi

smarkwell
08-08-2002, 11:44 AM
Don't forget the char space for the terminantor