Page 1 of 1

Re: Windows System error Codes 0 - 16000 userlib

Posted: Thu Nov 24, 2011 3:42 pm
by ts-soft
Many work, but what is the difference to:

Code: Select all

Procedure.s GetLastErrorStr(error.l = 0)
  If Not error
    error = GetLastError_()
  EndIf
  Protected Buffer.i, result.s
  If FormatMessage_(#FORMAT_MESSAGE_ALLOCATE_BUFFER|#FORMAT_MESSAGE_FROM_SYSTEM,0,error,0,@Buffer,0,0)
    result = PeekS(Buffer)
    LocalFree_(Buffer)
    ProcedureReturn result
  EndIf
EndProcedure
This comes in my locale language. :wink:

greetings - Thomas

Re: Windows System error Codes 0 - 16000 userlib

Posted: Tue Nov 29, 2011 4:17 pm
by IdeasVacuum
The mind boggles - 16,000 potential errors :shock:

Re: Windows System error Codes 0 - 16000 userlib

Posted: Tue Nov 29, 2011 6:35 pm
by fsw
16,000 errors?
Nowadays everything is so complicated.
I remember the good old times where you had only 2 states on Windows:
Either it worked or you got the BSOD.

:mrgreen: