Re: Returning value from a vb6 application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Also, if you call it whilst in the IDE, it will kill the whole process, i.e.
the IDE and the code being debugged, and possibly lose any changes you've
made

Tony Proctor

"Wolfgang Enzinger" <spamsink-8514@xxxxxxxxxxxxxx> wrote in message
news:nmuhp2hjv7dc7u758u3ri03gdjqot4cppf@xxxxxxxxxx
Hi Vic,

I need to return the value from a vb application - something like
cpp/c# int main()

use ExitProcess() to terminate your app:

Declare Sub ExitProcess Lib "kernel32" Alias "ExitProcess" (ByVal _
uExitCode As Long)

However, be aware that this function kills your app as rude as the End
statement does.

Wolfgang


.



Relevant Pages

  • Re: Evaluating D2005, help needed.
    ... If for example you are not as productive then the customer suffers from ... features were dropped due to time constraints. ... in fact I have only ever managed to kill the IDE ... I have never been able to kill D2005 ...
    (borland.public.delphi.non-technical)
  • Re: Only had D2006 one day...
    ... > I did the usual "reset" from the IDE menu. ... After that it hung. ... > trying to kill the process - both the IDE and the debugged application ...
    (borland.public.delphi.non-technical)
  • Re: Delphi 2006 broken
    ... The IDE remains responsive but locked, with a wait cursor. ... The application that I was debugging is still running but I can't kill it. ...
    (borland.public.delphi.non-technical)
  • Re: Walkthrough Instruction Error
    ... Well what you didn't say was that your code couldn't be run from the IDE. ... Whether or not it is in process or out of process is in itself insignificant, what is important is the overhead of marshalling and synchronization. ... The only advantage out of process has is it doesn't necessarily pull the app down if it crashes. ...
    (microsoft.public.vb.general.discussion)
  • Re: You finally beat me down
    ... I have spent a number of years developing a certain app ... ... installing components crash the IDE? ... Your stock VCL controls lack the most basic functionality. ... native app to build, it will be in WTL/wxWidgets or QT. ...
    (borland.public.delphi.non-technical)