VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Class to handle errors. Use this to easily handle errors in your VB application by creating a class

David Combs  (1 Submission)   Miscellaneous   Visual Basic 5.0   Unknown Difficulty   Wed 31st May 2000   Mon 8th February 2021

Class to handle errors. Use this to easily handle errors in your VB application by creating a class module and copying the code directly into

API Declarations


Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, _
ByRef nSize As Long) As Long

' API Function to get the computer name
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" _
(ByVal lpBuffer As String, _
ByRef nSize As Long) As Long

Private m_strFilePath As String ' path to save the log
Private m_blnLoggingOn As Boolean ' turn logging on or off
Private m_strUserName As String ' store the user name for logging purposes
Private m_strComputerName As String ' store the name of the computer the error occurred on

Rate Class to handle errors. Use this to easily handle errors in your VB application by creating a class (1(1 Vote))
Class to handle errors. Use this to easily handle errors in your VB application by creating a class.bas

Class to handle errors. Use this to easily handle errors in your VB application by creating a class Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters