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.
Thank you for your replay Doublemax, but i didn't call wxApp::OnInit() from MyApp::OnInit() !
Where you see this call ? ^_^
I get this error because i run the app with test arguments (MyApp.exe ArgTest1 ArgTest2...), so the command arguments Parser (wxCmdLineParser) return unknow argument "ArgTest1"
I know, i can use the wxCmdLineParser... but is there i way to ignore this ? i want use my personal parser method !
Thank you,
Last edited by saifcoder on Wed Jun 06, 2018 9:58 pm, edited 1 time in total.
Debian 9 - GCC 6 - wxWidgets 3.x U
Win 10 - GCC 8 - wxWidgets 3.x U
Mac OS X 10.x - Clang - wxWidgets 3.x U
i am in love with WX. Yes.
Yes, wxAppConsole::OnCmdLineError() with true return did it, but after showing error message ! Waw!
Unexpected parameter 'TestArg1'
Then App continue in normal way because wxAppConsole::OnCmdLineError() return true, so how to completely prevent wxAppConsole::OnCmdLineError() to show error log ?
Last edited by saifcoder on Wed Jun 06, 2018 10:29 pm, edited 1 time in total.
Debian 9 - GCC 6 - wxWidgets 3.x U
Win 10 - GCC 8 - wxWidgets 3.x U
Mac OS X 10.x - Clang - wxWidgets 3.x U
i am in love with WX. Yes.
Set a breakpoint at the beginning of MyApp::OnInit and single step through it. I can't think of any other place where the command line parsing could happen.