Skip to content

Use of GetLastError #1

@fafalone

Description

@fafalone

In a number of places win32 API errors are attempted to be trapped with GetLastError, however this is invalid in VB6. Unless declared in a type library, all API calls are automatically followed by a call to GetLastError by the compiler and the result placed in Err.LastDllError, and a subsequent call no longer represents the error of the intended call, but of the hidden call. Err.LastDllError should be used in its place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions