المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : converting WCHAR[] to BYTE[]



C++ Programming
08-12-2009, 09:04 AM
Hi,

I am trying to convert wchar[] content to byte[]... but to my surprise, all the suggested methods went in vain..
i used widechartomultibyte,wcstomobs .... they all reproduced "???" marks instead of characters, when i use Chinese or japanese content..

can anyone help me how to convert content without any loss??

Aim: my objective is to read byte by byte of wchar[] content and convert it to byte[]..

i'd be graterful to your reply.

Thanks,
Rajesh.