]> Creatis software - bbtkGEditor.git/blobdiff - appli/bbEditor/bbEditor.cxx
#3210 bbGEditor Feature New Normal - branch vtk7itk4wx3-mingw
[bbtkGEditor.git] / appli / bbEditor / bbEditor.cxx
index a12bae411a5cc06ab59ae0b07c6943ed81b9009f..8b3ee65c883da77341d6e8fd7ccb7688f6322f5d 100644 (file)
@@ -184,7 +184,10 @@ bool wxBBEditorApp::OnInit( )
 //  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);
+       char buffer[500];
+       wcstombs(buffer, ::GetCommandLine(), 500);
+       return WinMain(::GetModuleHandle(NULL), NULL, buffer, SW_SHOWNORMAL);
+//     return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
 }
 
 #endif // defined(_WIN32)