VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering

You are here: Visual Basic > Advanced VB6 tutorial > Chapter 11

Properties of the Err Object - LastDLLError Property

The LastDLLError property is a read-only property used by DLLs to return error information to Visual Basic applications. For versions of Visual Basic prior to 5.0, it is important to know that LastDLLError is only available in 32-bit Windows operating systems.

If an error occurs in a DLL, the function or sub-routine will signify the error through a return value or an argument. Check the documentation for that DLL to determine how errors will be identified. If an error does occur, you can check the LastDLLError property of the Err object to get additional information for that error. When the LastDLLError property is set, an error exception is not raised and error handling in your Visual Basic application will not be invoked.

IMPORTANT - LastDLLError Only Available in 32-Bit Code: Because the LastDLLError property is only available in 32-bit Windows operating systems, you must be cautious when developing code that will be conditionally compiled for both 16-bit and 32-bit environments. Make sure that you do not include references to LastDLLError in code that will be compiled for a 16-bit executable.


<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © | All Rights Reserved