// main frame
bool wxBBIApp::OnInit( )
{
- // std::cout << "OnInit"<<std::endl;
+ // std::cout << "OnInit"<<std::endl;
wxApp::OnInit();
#ifdef __WXGTK__
//See http://www.wxwindows.org/faqgtk.htm#locale
{
// std::cout << "!I->Close"<<std::endl;
}
+
+ // std::cout << "EO OnInit"<<std::endl;
+
return true;
}
// WINDOWS
//==========================================================================
IMPLEMENT_APP(wxBBIApp);
+
// How to have a Console and wxWidgets
// http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
// In Visual C++ 6 (7 should be similar), to create an application that is both a console application
// you need to use the linker option "/subsystem:console" and the following code:
int main(int argc, char* argv[])
{
- return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
+ return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
}
#else
int main(int argc, char* argv[])
-{
+{
wxMessageOutput::Set( new wxMessageOutputBest );
wxCmdLineParser parser(cmdLineDesc,argc,argv);
int main(int argc, char* argv[])
{
-
if (argc>2)
{
std::cout << "usage : "<<argv[0]<<" [filename]"<<std::endl;