How do I
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
Please show me how can I do when after running the program receive an error message that program finished with code 0
Are you saying tht you're spawning an external program and waiting for the return code from that program or are you trying to set the return code when your app terminates? RageInTheMachine9532
-
Please show me how can I do when after running the program receive an error message that program finished with code 0
if you are using VB6, you want to use the ExitProcess API call Private Declare Sub ExitProcess Lib "KERNEL32" (ByVal uExitCode As Long) normal end: ExitProcess 0 useful if you run your app from a batch file or shell and wait for it to finish from another app