IT-Consultant: James C. Fuller > Discussion
REPLACE
James C. Fuller:
Patrice,
I think your problem might be your use of CopyMemory instead of wmemcpy in the replace function??
Aren't you copying char's instead of wchar's?
James
Patrice Terrier:
James--
You are absolutly right, i forget to multiply delta by sizeof(WCHAR), as i am dealind with Unicode while BC9 is using ANSI
--- Code: ---CopyMemory(r, p, delta*sizeof(WCHAR));
--- End code ---
My mistake, thank you!
Navigation
[0] Message Index
[*] Previous page
Go to full version