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

Thread: Terminate application

  1. #1
    Join Date
    Jul 2006
    Posts
    285

    Terminate application

    Hi
    I wanna ask something because i am new on this programming. Expect terminate an application with the above ways are there any others:

    Application->Terminate();
    Form1->Close();

    Any ideas will be very helpful

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: Terminate application

    What about ::SendMessage() with WM_CLOSE ?

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Jul 2006
    Posts
    285

    Re: Terminate application

    And how the code will be??????

  4. #4
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Terminate application

    Code:
    TerminateProcess(GetCurrentProcess(), 0);
    Nobody cares how it works as long as it works

  5. #5
    Join Date
    Jul 2006
    Posts
    285

    Re: Terminate application

    Thank you a lot.... I hope to find other ways too... Is like an exercise i have for university

  6. #6
    Join Date
    Jan 2008
    Posts
    178

    Re: Terminate application

    See Google Groups where all the right methods have been given for decades
    (and SendMessage() with WM_CLOSE is wrong)

  7. #7
    Join Date
    Jul 2006
    Posts
    285

    Re: Terminate application

    See what?? What you mean?? What is Google groops?

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)