Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                            SetFilePointer(hFile, 3476, NULL, FILE_BEGIN);
  2.                         //    ReadFile(hFile, bufor, 2, &dwRead, NULL);
  3.                             ReadFile(hFile, &tresc, 2, &dwRead, NULL);
  4.                             //tresc[dwSize] = 0;
  5.                             char dupa[100];
  6.                             char ileKurwa[3];
  7.                         //    wsprintf(ileKurwa, "%02X", bufor[1]);
  8.                         //    strcat(dupa, ileKurwa);
  9.                         //    wsprintf(ileKurwa, "%02X", bufor[0]);
  10.                         //    strcat(dupa, ileKurwa);
  11.  
  12.                         //    wsprintf(ileKurwa, "%02X", tresc);
  13.                             tresc = (tresc >> 8) | ((tresc & 0xFF) << 8);
  14.                             wsprintf(dupa, "%04d", tresc);
  15.  
  16.                             //SetWindowText(hBufor, kurwa);
  17.                             SetWindowText(hBufor, dupa);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement