3 //==========================================================================
5 //==========================================================================
7 #include "EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.h"
9 #include <wx/cmdline.h>
13 class wxBBEditorApp : public wxApp
17 int OnExit() { return true; }
21 IMPLEMENT_APP(wxBBEditorApp);
26 // ----------------------------------------------------------------------------
27 // The `main program' equivalent, creating the windows and returning the
29 bool wxBBEditorApp::OnInit( )
33 //See http://www.wxwindows.org/faqgtk.htm#locale
34 setlocale(LC_NUMERIC, "C");
37 bbtk::wxGUIEditorGraphicBBS *iegbbs;
38 iegbbs = new bbtk::wxGUIEditorGraphicBBS(NULL);
48 // How to have a Console and wxWidgets
49 // http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
50 // In Visual C++ 6 (7 should be similar), to create an application that is both a console application
51 // (cout's to the console are visible) and has a wxWidgets GUI,
52 // you need to use the linker option "/subsystem:console" and the following code:
53 int main(int argc, char* argv[])
55 return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
58 #endif // defined(_WIN32)
62 //==========================================================================
64 //==========================================================================
66 int main(int argc, char* argv[])
68 std::cout << "bbStudio was not compiled with wxWidgets : ciao !" <<std::endl;
73 #endif //#ifdef _USE_WXWIDGETS_