Wstr_to_str | developer.brewmp.com Wstr_to_str | developer.brewmp.com

Developer

Wstr_to_str

Forums:

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:

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

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

Don't forget the char space for the terminantor

Don't forget the char space for the terminantor