Hi all.I am getting error codes of 0x02, whilst Getting GetLastError(); as soon as program starts... It should be 0x00, ERROR_SUCCESS... right?I am using XP fully patched(3 pcs), tried in multiple mingw versions(including latest version; no other compilers yet).
Ex :#include <stdio.h>
#include <windows.h>int main() { printf("Last error result : %ld", GetLastError());
}Which gets me the result of 0x02, or ERROR_FILE_NOT_FOUND (?) Could anyone confirm this result?dword GetLastError() synopsis http://msdn.microsoft.com/en-us/library/ms679360(VS.85).aspx Windows system error codes http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx
_________________________________________________________________
Conheça o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/ |