i dont think that will help.
this program works fine in C but soon as its with unicode it goes nuts
Code:
int pos;
TCHAR SaveTxt[2048];
TCHAR ReadTxt[128];
TCHAR testt[128];
FILE *fal;
fal = fopen("users.txt" , "rw");
if(fal == NULL){
MessageBox(0 , _T("list not found") , _T("Error") , 0);
}
fseek(fal, 0, SEEK_END);
pos = ftell(fal);
fseek(fal, 0, SEEK_SET);
fread(&ReadTxt , pos , 1 , fal);
_stprintf(testt , _T("%d") , pos);
SendMessage(hwndList , WM_SETTEXT , (WPARAM)pos , (LPARAM)ReadTxt);
MessageBox(0 , testt , _T("test") , 0);
thats all of it.
its like its showing the buffer for ReadTxt because if i change the Arraysize on Readtxt say to 2 then it only shows 2 wierd widechar characters but if i keep it t hat big it shows a whole lot of it