]> Creatis software - crea.git/blobdiff - src/creaWx.h
*** empty log message ***
[crea.git] / src / creaWx.h
index 29fb0619f09ec2c72aafe29335bd9f42a5a95eaa..7b63c86b6192140728790bc58e03872c5b8bf0c2 100644 (file)
@@ -40,6 +40,7 @@ typedef void wxWindow;
 
 
 #if defined(_WIN32) 
+
 //  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 
@@ -51,18 +52,22 @@ typedef void wxWindow;
     return WinMain(::GetModuleHandle(NULL), NULL,                      \
                   ::GetCommandLine(), SW_SHOWNORMAL);                  \
   }                                                                    
+
 #else // defined(_WIN32) 
+
 #define CREA_WXMAIN_WITH_CONSOLE
+
 #endif // defined(_WIN32) 
 
 
+#include <string>
 
 
 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();