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. OnCancel problem

OnCancel problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
8 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.
  • C Offline
    C Offline
    celllllllll
    wrote on last edited by
    #1

    Hi All, I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something? Thanks in advance Preeti

    C++Prog

    L D P H 4 Replies Last reply
    0
    • C celllllllll

      Hi All, I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something? Thanks in advance Preeti

      C++Prog

      L Offline
      L Offline
      Leah_Garrett
      wrote on last edited by
      #2

      What kind of errors are you getting? Do they appear before the interface closes?

      C 1 Reply Last reply
      0
      • L Leah_Garrett

        What kind of errors are you getting? Do they appear before the interface closes?

        C Offline
        C Offline
        celllllllll
        wrote on last edited by
        #3

        No..they appear after I click "Cancel" button on the dialog box.

        C++Prog

        L 1 Reply Last reply
        0
        • C celllllllll

          No..they appear after I click "Cancel" button on the dialog box.

          C++Prog

          L Offline
          L Offline
          Leah_Garrett
          wrote on last edited by
          #4

          What are the error messages? It could be from some clean-up code or many other things. It would be easier to offer ideas if you provide the errors messages themselves.

          C 1 Reply Last reply
          0
          • L Leah_Garrett

            What are the error messages? It could be from some clean-up code or many other things. It would be easier to offer ideas if you provide the errors messages themselves.

            C Offline
            C Offline
            celllllllll
            wrote on last edited by
            #5

            Thanks for the help...Actually, the error messages are related to my project. Thanks

            C++Prog

            1 Reply Last reply
            0
            • C celllllllll

              Hi All, I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something? Thanks in advance Preeti

              C++Prog

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Preeti9 wrote:

              ...I get errors...

              We're not mind readers. What are they?


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              1 Reply Last reply
              0
              • C celllllllll

                Hi All, I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something? Thanks in advance Preeti

                C++Prog

                P Offline
                P Offline
                prasad_som
                wrote on last edited by
                #7

                As said by Leah_Garett, It may be bacause of some clean-up code. You need to debug it. Or tell exact error message.

                Prasad Notifier using ATL | Operator new[],delete[][^]

                1 Reply Last reply
                0
                • C celllllllll

                  Hi All, I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something? Thanks in advance Preeti

                  C++Prog

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

                  Can you show errors?


                  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