|
-
August 21st, 2001, 03:57 PM
#1
Exit code
How can i send an exit code with a VB App? It's to be test with errorlevel in a batch file.
-
August 21st, 2001, 04:14 PM
#2
Re: Exit code
There's an API that'll do taht for you:
private Declare Sub ExitProcess Lib "kernel32.dll" Alias "ExitProcess" _
(byval uExitCode as Long)
I'm not too sure whether you'll catch the errorlevel if the application has a Window's GUI (you may have to go the console way), but give it a bash.
-
August 22nd, 2001, 08:35 AM
#3
-
August 23rd, 2001, 03:11 AM
#4
Re: Exit code
The API call always makes my application crash because of a memory access violation. Any ideas why?
Daniel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|