X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaWx.h;h=f442f7de8ce1a2dd6a2e6c368e9558a81b8b87d1;hb=125ebd33086d760e061a2a56656b7f6fb7be27fc;hp=eee7414a4a737dabcb0e9bc3b5372aa6b4236fce;hpb=757d5fcb925e1e64e5da7ccac647c9fcc18d2a64;p=crea.git diff --git a/src/creaWx.h b/src/creaWx.h index eee7414..f442f7d 100644 --- a/src/creaWx.h +++ b/src/creaWx.h @@ -46,6 +46,7 @@ typedef void wxWindow; // In Visual C++ 6 (7 should be similar), to create an application that is both a console application // (cout's to the console are visible) and has a wxWidgets GUI, // you need to use the linker option "/subsystem:console" and the following code: + #define CREA_WXMAIN_WITH_CONSOLE \ int main(int argc, char* argv[]) \ { \ @@ -60,13 +61,14 @@ typedef void wxWindow; #endif // defined(_WIN32) +#include namespace crea { //================================================================== /// Conversion std::string to wxString - inline wxString std2wx(const std::string& s){ + inline wxString std2wx(const std::string& s) { wxString wx; const char* my_string=s.c_str(); wxMBConvUTF8 *wxconv= new wxMBConvUTF8();