X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2Fbbi%2Fbbi.cxx;h=bb06f6816802ca84e8d8af43b9ef2a4d583b0559;hb=00119d2074a1d423927404a1759b9a9616a087ba;hp=c4ef2fd628b33456beb9f968900320e08976b8bc;hpb=2c60c89f749008a00df6d24b34b4774b806979f6;p=bbtk.git diff --git a/kernel/appli/bbi/bbi.cxx b/kernel/appli/bbi/bbi.cxx index c4ef2fd..bb06f68 100644 --- a/kernel/appli/bbi/bbi.cxx +++ b/kernel/appli/bbi/bbi.cxx @@ -225,6 +225,7 @@ bool wxBBIApp::OnInit( ) // 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 @@ -232,7 +233,7 @@ IMPLEMENT_APP(wxBBIApp); // 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 @@ -316,7 +317,6 @@ int main(int argc, char* argv[]) int main(int argc, char* argv[]) { - if (argc>2) { std::cout << "usage : "<