GetLastError()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

GetLastError()

Post by RSBasic »

WinAPI: GetLastError_()
The return values should be compatible with the following list: https://docs.microsoft.com/en-us/window ... rror-codes
Linux & MacOS: I don't know. (If this function even exists.)
Image
Image
User avatar
HeX0R
Addict
Addict
Posts: 992
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: GetLastError()

Post by HeX0R »

+1
The whole error handling of PB needs some improvement, without API you can't really show usable error messages and create professional applications.
If this will be implemented in some near future, don't forget the (quite old) WSAGetLastError() request for network errors!
Bitblazer
Enthusiast
Enthusiast
Posts: 736
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: GetLastError()

Post by Bitblazer »

Post Reply