]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWxGUIConsole.cxx
std2wx related troubles.
[bbtk.git] / kernel / src / bbtkWxGUIConsole.cxx
index e60afd3d9e21791207ff70c5cf2e71bd8e125677..164e244016272a360f93b2c0252cee3f2c5c3e2a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkWxGUIConsole.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/03/20 09:51:29 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/03/20 11:04:57 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -210,7 +210,8 @@ namespace bbtk
   //================================================================
   void WxGUIConsole::OnButtonRun(wxCommandEvent& WXUNUSED(event))
   {
-    std::string filename = wx2std(mWxGUIHtmlBrowser->GetCurrentPage());
+//    wxString temp = mWxGUIHtmlBrowser->GetCurrentPage();
+    std::string filename = mWxGUIHtmlBrowser->GetCurrentPage();//wx2std(temp);
     size_t s = filename.length();
 
     Interpreter* I = new Interpreter;
@@ -220,7 +221,9 @@ namespace bbtk
        && (filename[s-3]=='b')
        && (filename[s-4]=='.'))
       {
-       SetStatusText(_T("Executing ")+filename);
+        std::string tmp("Executing ");
+        tmp += filename;
+       SetStatusText(std2wx(tmp));
        I->InterpretFile(filename);
       }
     else