]> Creatis software - crea.git/commitdiff
#3169 creaFeature New Normal - branch vtk7itk4wx3-mxecc vtk7itk4wx3-mxecc
authorEduardo DAVILA <davila@localhost.localdomain>
Mon, 22 Jan 2018 10:25:55 +0000 (11:25 +0100)
committerEduardo DAVILA <davila@localhost.localdomain>
Mon, 22 Jan 2018 10:25:55 +0000 (11:25 +0100)
appli/creaNewProject/creaNewProject.cpp
src/creaWx.h

index 17f64baeb072bc7f1ea1838da33f1e20f04e6b7b..5f61ddff2a216318e3ab88e88624e363c10f438a 100644 (file)
@@ -84,7 +84,10 @@ bool myApp::OnInit( )
                system ( command2.c_str() );
 
         // Create a Package at the same time.   JPR
-               char *author = (char*) (authorWX.mb_str()) ;
+
+//EED 2018/01/22               char *author = (char*) (authorWX.mb_str()) ;
+                std::string author(authorWX.mb_str());
+
                std::string nomDirectory = crea::wx2std(dir) + "\\" + crea::wx2std(name);
                std::string nomPackageDirectory = nomDirectory + "\\" + "bbtk_" + crea::wx2std(name) + "_PKG";
                std::string bbCreatePackage("bbCreatePackage ");
index c97e10fb0dc35f66f337668c925a447072924ee3..c758f90e2466634d1459720b0dce02288ad33c00 100644 (file)
@@ -70,7 +70,7 @@ typedef void wxWindow;
   int main(int argc, char* argv[])                                     \
   {                                                                    \
     return WinMain(::GetModuleHandle(NULL), NULL,                      \
-                  ::GetCommandLine(), SW_SHOWNORMAL);                  \
+                  (char*)::GetCommandLine(), SW_SHOWNORMAL);           \
   }                                                                    
 
 #else // defined(_WIN32)