VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Cause Fatal Errors In Your Program

Will Brendel  (5 Submissions)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code just causes those neat little errors Windows sends us every so often. I don't think there's a use for this, but here it is anyway. Just a note, it also closes the VB IDE when called so watch out!

Inputs
Buttons: cmdFatalAppExit, cmdFatalExit

Side Effects
Crashes VB IDE if called from within the IDE.

API Declarations
Private Declare Sub FatalAppExit Lib "kernel32" Alias "FatalAppExitA" (ByVal uAction As Long, ByVal lpMessageText As String)
Private Declare Sub FatalExit Lib "kernel32" (ByVal code As Long)

Rate Cause Fatal Errors In Your Program (4(4 Vote))
Cause Fatal Errors In Your Program.bas

Cause Fatal Errors In Your Program Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters