LastDLLError Property

Applies To

Err Object.

Description

Returns a system error code produced by a call into a dynamic-link library (DLL). Occurs only on 32-bit Microsoft Windows operating systems.

Syntax

object.LastDLLError

The LastDLLError property syntax has these parts:

Part

Description

object

Always the Err object.


Remarks

The LastDLLError property is relevant only to 32-bit Windows systems. It applies only to DLL calls that require a Declare statement within the Visual Basic code. When such a call is made, the called function usually returns a code indicating success or failure, and the LastDLLError property is filled. Check the documentation for the DLL’s functions to determine what return values indicate success or failure. Whenever the failure code is returned, the Visual Basic application should immediately check the LastDLLError property. No exception is raised when the LastDLLError property is set.

See Also

Declare Statement, Description Property, Err Object, HelpContext Property (Visual Basic), HelpFile Property (Visual Basic), Number Property, Source Property.