is it normal for GetLastError() to continually return 2 (ERROR_FILE_NOT_FOUND) and 5 (ERROR_ACCESS_DENIED), when you call them?
I mean, I tried GetLastError() at the beginning of WinMain(), and it returns 2. And then in some other places GetLastError() returns 5, but then I'm pretty sure the crashes that have been happening in my program isn't because of file accesses.
Unless error 5 (ERROR_ACCESS_DENIED) means memory access?
Anybody has any ideas?