// 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[])
{
-
if (argc>2)
{
std::cout << "usage : "<<argv[0]<<" [filename]"<<std::endl;