Plattform Windows 95: Supporterad. Windows 98: Supporterad. Windows NT: Requires Windows NT 3.1 eller senare. Windows 2000: Supporterad. Windows CE: Requires Windows CE 1.0 eller senare. Returnerar The function returns the error code of the last API function called by the program. Visual Basic-Specific Issues Although GetLastError works perfectly in Visual Basic, it will sometimes not appear to work. This is because Visual Basic implicitly uses the API frequently to perform tasks which are seemingly intrinsic to the language. These hidden API function calls will usually overwrite the error code which your code may be trying to read. To compensate for this, the LastDllError property of the Err object, predefined in Visual Basic, caches the error code from the last API function explicitly called by your program. You should use the expression Err.LastDllError instead of the GetLastError function to debug failed API function calls.2024-04-26" />