trace error
-
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?
-
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?
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
-
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?
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
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
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.
-
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.
: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
-
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
/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