From: Eduardo DAVILA Date: Mon, 22 Jan 2018 10:25:55 +0000 (+0100) Subject: #3169 creaFeature New Normal - branch vtk7itk4wx3-mxecc X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Fheads%2Fvtk7itk4wx3-mxecc;p=crea.git #3169 creaFeature New Normal - branch vtk7itk4wx3-mxecc --- diff --git a/appli/creaNewProject/creaNewProject.cpp b/appli/creaNewProject/creaNewProject.cpp index 17f64ba..5f61ddf 100644 --- a/appli/creaNewProject/creaNewProject.cpp +++ b/appli/creaNewProject/creaNewProject.cpp @@ -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 "); diff --git a/src/creaWx.h b/src/creaWx.h index c97e10f..c758f90 100644 --- a/src/creaWx.h +++ b/src/creaWx.h @@ -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)