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