Error Handling

Status
Not open for further replies.

smig

Registered User.
Local time
Today, 19:49
Joined
Nov 25, 2009
Messages
2,209
I'm sure all of you take care for Errors in your application and show the user a message with error details.
I took this one step farther and let the user sending me the information by email.

For this I'm using the great VbSendMail.dll (it must be registered in the server, and a refernce should be added to SMTP Send Mail for VB6.0)

I'm using my oun MsgBox, but you can use the original

You call it by using:
ErrorHandling(FormName As String, ModuleName As String, error As Long, ErrorDescription As String)

FormName can also be the ModulName

You will need to set up some eMail details for this to work.
some servers check for the UserEMail metch the settings, some won't.
from my experiment if you register an email acount at GoDaddy.com you can use your oun email acount settings (it will only check for a valid email, not a metch between the email and settings). you will only need the user name and it's valid email.

remark: MyMsgBox is right eligned for Hebrew, so you might need to make some changes.

feel free to use, feel free to change to your needs :)
if you publish your applicaton be fair and put a small "Thank you" note in your documentation.
 

Attachments

Status
Not open for further replies.

Users who are viewing this thread

Back
Top Bottom