]> Creatis software - creaContours.git/blobdiff - appli/wxContourGUIExample/wxContourGUIExample.cxx
BUG linux wxString -> const char* + Segmentation.png
[creaContours.git] / appli / wxContourGUIExample / wxContourGUIExample.cxx
index ddf28af5c096a10da2b457e2815c7406cd525149..9e8d5e5f54e0ce404fb66f1e5271fd2e73bbe989 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "vtkMetaImageReader.h"
 #include <map>
-#include "vtkImageData.h"
+#include "vtkImageData.h"mb_
 
 #include "wx/artprov.h"
 #include <wx/filedlg.h>
@@ -134,7 +134,7 @@ bool wxTheApplication :: OnInit()
        }else if (w.GetReturnCode() == wxID_CANCEL){
           vtkMetaImageReader *reader = vtkMetaImageReader::New();
           wxString filename= getExecutablePath()+ wxString( _T("/data/hola.mhd") , wxConvUTF8 );          
-          reader->SetFileName( filename.c_str() );
+          reader->SetFileName( (const char*)(filename.mb_str()) );
           reader->Update();
           images.push_back(reader->GetOutput());
        }else{