for some reason, the code I'm using to write to a file won't work when I put an int value in the buffer to be written. Here's my code:
WriteFile((HANDLE)info, (LPVOID)sprites[2].typenum, sizeof(int), &written, NULL);
sprites[] is an array of structs containing an int typenum.
info is an HFILE.
written is a DWORD.
So what's wrong?
WriteFile((HANDLE)info, (LPVOID)sprites[2].typenum, sizeof(int), &written, NULL);
sprites[] is an array of structs containing an int typenum.
info is an HFILE.
written is a DWORD.
So what's wrong?