Author | Message | Time |
---|---|---|
Grok | When calling a typical command-line program written in C, the return value can be handled. But from VB6 programs, there is no way to set the return value. Does someone (TheMinistered?) maybe know how to set the return value such that when my program completes, it returns some value I specify in my VB code? | February 21, 2005, 7:53 PM |
K | Can you not just use ExitProcess(return_val) when you reach then end of your code? | February 21, 2005, 8:00 PM |
Newby | [code]Public Declare Sub ExitProcess Lib "kernel32" Alias "ExitProcess" (ByVal uExitCode As Long)[/code] See if that works. | February 21, 2005, 8:43 PM |
TheMinistered | You should use a function to determine if you are in the IDE or not, otherwise you may get unexpected results :) i.e. IDE will close as well :) | February 28, 2005, 3:11 AM |