Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to exit from aplication ?

How to exit from aplication ?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bravoone_2006
    wrote on last edited by
    #1

    you know how to exit from aplication ? i need something like : PostQuitMessage(125); :)

    Bravoone

    R T R 3 Replies Last reply
    0
    • B Bravoone_2006

      you know how to exit from aplication ? i need something like : PostQuitMessage(125); :)

      Bravoone

      R Offline
      R Offline
      Rinu_Raj
      wrote on last edited by
      #2

      whats happening ? is that one not wuiting ? Rinu Raj

      1 Reply Last reply
      0
      • B Bravoone_2006

        you know how to exit from aplication ? i need something like : PostQuitMessage(125); :)

        Bravoone

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        what kind of application ? Console ? Win32, MFC ? .NET ?


        TOXCCT >>> GEII power

        [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

        1 Reply Last reply
        0
        • B Bravoone_2006

          you know how to exit from aplication ? i need something like : PostQuitMessage(125); :)

          Bravoone

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          #include ... exit(0); Nobody can give you wiser advice than yourself. - Cicero

          T 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            #include ... exit(0); Nobody can give you wiser advice than yourself. - Cicero

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            in console, yes, but there are better ways otherwise. that's why i'm waiting for his answer...


            TOXCCT >>> GEII power

            [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

            R 1 Reply Last reply
            0
            • T toxcct

              in console, yes, but there are better ways otherwise. that's why i'm waiting for his answer...


              TOXCCT >>> GEII power

              [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              Yes, you're right. Since he is not specific about the question, I gave a more generic answer, which is applicable into MFC/Console :D

              Nobody can give you wiser advice than yourself. - Cicero

              B 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Yes, you're right. Since he is not specific about the question, I gave a more generic answer, which is applicable into MFC/Console :D

                Nobody can give you wiser advice than yourself. - Cicero

                B Offline
                B Offline
                Bravoone_2006
                wrote on last edited by
                #7

                yes mfc and thanks all !

                Bravoone

                T H 2 Replies Last reply
                0
                • B Bravoone_2006

                  yes mfc and thanks all !

                  Bravoone

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #8

                  Bravoone_2006 wrote:

                  yes mfc

                  then Call CDialog::EndDialog(IDOK) (or IDCANCEL)


                  TOXCCT >>> GEII power

                  [VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]

                  1 Reply Last reply
                  0
                  • B Bravoone_2006

                    yes mfc and thanks all !

                    Bravoone

                    H Offline
                    H Offline
                    Hamid Taebi
                    wrote on last edited by
                    #9

                    Or SendMessage(WM_CLOSE);


                    WhiteSky


                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups