From 95e01f9f2f29e0695194613b0068b2a06591306f Mon Sep 17 00:00:00 2001 From: corredor <> Date: Wed, 10 Oct 2012 09:45:41 +0000 Subject: [PATCH] BUG - Problem when crea::std2wx is not used. Problem corrected --- .../bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.45.0