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. trace error

trace error

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++debugginghelp
6 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.
  • K Offline
    K Offline
    keyto
    wrote on last edited by
    #1

    When i call the CDialog::OnOK(); function I get error : C:\Documents and Settings\Administrator\Desktop\new_pdf_latest\pdf_latest\itagane_latest\itagane_latest\itagane\CTools\daishi.cpp(116) : error C2039: 'OnOK' : is not a member of 'CDialog' How can I solve this error?

    N T 2 Replies Last reply
    0
    • K keyto

      When i call the CDialog::OnOK(); function I get error : C:\Documents and Settings\Administrator\Desktop\new_pdf_latest\pdf_latest\itagane_latest\itagane_latest\itagane\CTools\daishi.cpp(116) : error C2039: 'OnOK' : is not a member of 'CDialog' How can I solve this error?

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      One possibility is deriving your dialog from CDialog The other one is establishing it by yourself //in header //{{AFX_MSG(CDaishi) virtual void OnOK(); //in cpp void CDaishi::OnOK() { //do whatever you need } Forget about it. I didn't pay attention, you are not in MFC.

      Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

      modified on Wednesday, December 05, 2007 5:45:52 AM

      C V 2 Replies Last reply
      0
      • K keyto

        When i call the CDialog::OnOK(); function I get error : C:\Documents and Settings\Administrator\Desktop\new_pdf_latest\pdf_latest\itagane_latest\itagane_latest\itagane\CTools\daishi.cpp(116) : error C2039: 'OnOK' : is not a member of 'CDialog' How can I solve this error?

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

        Something is missing, could you please present the decalaration of your class!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        1 Reply Last reply
        0
        • N Nelek

          One possibility is deriving your dialog from CDialog The other one is establishing it by yourself //in header //{{AFX_MSG(CDaishi) virtual void OnOK(); //in cpp void CDaishi::OnOK() { //do whatever you need } Forget about it. I didn't pay attention, you are not in MFC.

          Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

          modified on Wednesday, December 05, 2007 5:45:52 AM

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          And how can he derive his CDialog from MFC's CDialog? I see a little naming conflict... :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          N 1 Reply Last reply
          0
          • C CPallini

            And how can he derive his CDialog from MFC's CDialog? I see a little naming conflict... :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #5

            :doh: I didn't realice...

            Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

            1 Reply Last reply
            0
            • N Nelek

              One possibility is deriving your dialog from CDialog The other one is establishing it by yourself //in header //{{AFX_MSG(CDaishi) virtual void OnOK(); //in cpp void CDaishi::OnOK() { //do whatever you need } Forget about it. I didn't pay attention, you are not in MFC.

              Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

              modified on Wednesday, December 05, 2007 5:45:52 AM

              V Offline
              V Offline
              vasarlajagadish
              wrote on last edited by
              #6

              /in header //{{AFX_MSG(CDaishi) void OnOK(); //in cpp void CDaishi::OnOK() { //do whatever you need CDialog::OnOk(); } Remove the virtual keyword in the header.it will Work

              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