From: corredor <> Date: Wed, 10 Oct 2012 09:45:41 +0000 (+0000) Subject: BUG - Problem when crea::std2wx is not used. Problem corrected X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtkGEditor.git;a=commitdiff_plain;h=95e01f9f2f29e0695194613b0068b2a06591306f BUG - Problem when crea::std2wx is not used. Problem corrected --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index 3b6641e..cdbb0e8 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -967,8 +967,7 @@ void wxGUIEditorGraphicBBS::OnCreateBlackBox(wxCommandEvent& event) { } //========================================================================= void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { - //printf("EED wxGUIEditorGraphicBBS::OnPlugPackage ... not implemented ..\n"); - //this is the right code but it's left to include the corresponding commented libraries + //DFGO2012 Plug Package functionnalities long style = wxDD_DEFAULT_STYLE | wxDD_DIR_MUST_EXIST; wxDirDialog* FD = new wxDirDialog( 0, @@ -1011,8 +1010,9 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) { #endif #endif - - wxMessageBox(_T(err),_T("Plug package"),wxOK | wxICON_ERROR); + wxMessageBox(crea::std2wx(err), _T("Plug package"),wxOK | wxICON_ERROR); + // THE FOLLOWING LINE GIVES ERRORS BECAUSE IT IS NECESSARY TO USE std2wx + //wxMessageBox( _T( err) , _T("Plug package"),wxOK | wxICON_ERROR); } } }while(userResponse != wxID_CANCEL);