14 Jan 2014 by ilostmyid2
hiin the following code:FILE *fp=fopen("f5.txt", "wt");LPCWSTR uctext=L"سلام";int stat=fputws(uctext,fp);fclose(fp);i get an empty file with stat=-1. why?! i expect fputws convert the unicode text which is in arabic language to multibyte string and write it to file.any idea?thx