error C2039: 'OnOK' : is not a member of 'wxDialog Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Itishree
Knows some wx things
Knows some wx things
Posts: 38
Joined: Sat Jul 17, 2010 10:47 pm

error C2039: 'OnOK' : is not a member of 'wxDialog

Post by Itishree »

OS:windows 7 Professional ,32 bit operating system
compiler : vc 9.0(Microsoft Visual Studio 2008 Professioal edition)
wxWidgets 2.8.11

Hello,
I am migating my vc ++ application developed with wxWindows 2.4.1 to wxWidgets 2.8.11.
While rebuilding my application getting the below error.
error C2039: 'OnOK' : is not a member of 'wxDialog
i am attching the code block.

Code: Select all

wxDialog::OnOK(event);

error C2039: 'OnCancel' : is not a member of 'wxDialog'
1> d:\trolleye\wxwidgets-2.8.11\include\wx\msw\dialog.h(27) : see declaration of 'wxDialog'

Code: Select all

wxDialog::OnApply(event);
error C2039: 'OnCancel' : is not a member of 'wxDialog'
1> d:\trolleye\wxwidgets-2.8.11\include\wx\msw\dialog.h(27) : see declaration of 'wxDialog'

Code: Select all

wxDialog::OnCancel(event);
Kindly reply for any any possible solution.
Thanks in advance..[/code]
orbitcowboy
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

Post by orbitcowboy »

i recommend to report this issue at the issue-tracker of wxWidgets:

http://trac.wxwidgets.org/wiki

Cheers,

Orbitcowboy
OS: Ubuntu 9.04 (32/64-Bit), Debian Lenny (32-Bit)
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

Hi,
I am migating my vc ++ application developed with wxWindows 2.4.1 to wxWidgets 2.8.11.
There have been a few changes... ;)

OnOK was removed in 2.7. See for example http://forums.wxwidgets.org/viewtopic.php?t=10558

Regards,

David
User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2409
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania

Post by evstevemd »

I suggest you take time to read change logs from that version to current one. I believe thereby you can know what was chopped off and what was added
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Post Reply