CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: EXE Exit code

  1. #1
    Join Date
    Oct 1998
    Posts
    1

    EXE Exit code



    Is there a way I can set the exit code of a VB app?

  2. #2
    Join Date
    Dec 1998
    Posts
    28

    Re: EXE Exit code



    The API ExitProcess does that.

  3. #3
    Join Date
    Apr 2000
    Posts
    1

    How to saiftly close any application

    Can some1 tell me how can I saiftly close some Application started on my PC.
    I have try with TerminateProcess, but some things of app does'n end.
    Is it posible to use ExitProcess to end some app another then current.
    thanx in advence.


  4. #4
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: How to saiftly close any application

    emm, i think why not you try the easy method,
    obtain the hWnd of the appication, and use PostMessage with WM_CLOSE to close it?
    HTH

    Sooner Or Later, Everyone Does...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured