iam converting some ansi hebrew string to unicode string by using
following method:
nSize = MultiByteToWideChar(nlanguageCodePage, 0, chAnsiBuff, -1, NULL, 0);
MultiByteToWideChar(nlanguageCodePage, 0, chAnsiBuff, -1, chUniocodeBuff, 512);
iam having hebrew - ( windows code page 1255) so i will get 1255 ....if any junk characters are there in ansi it will dispalay correclty in unicode ?
what exactly this will do ( i.e first parameter will do if i willspecify hebrew still its converting proeprly)
please let me know the why its not working
What I have tried:
nSize = MultiByteToWideChar(nlanguageCodePage, 0, chAnsiBuff, -1, NULL, 0);
MultiByteToWideChar(nlanguageCodePage, 0, chAnsiBuff, -1, chUniocodeBuff, 512);
if (nBOM == 0) { arcOut.Write(&bom, 2); }
arcOut.WriteString(chUniocodeBuff);