X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4636a1e8f869e405523113971791b3efac5f7c4a..c663fbea6851207b4e0ac3e362868c23b1494a46:/samples/htlbox/htlbox.cpp diff --git a/samples/htlbox/htlbox.cpp b/samples/htlbox/htlbox.cpp index 1a87b03df6..2e3b116dc1 100644 --- a/samples/htlbox/htlbox.cpp +++ b/samples/htlbox/htlbox.cpp @@ -40,6 +40,7 @@ #endif #include "wx/colordlg.h" +#include "wx/numdlg.h" #include "wx/htmllbox.h" @@ -84,6 +85,8 @@ protected: #ifdef USE_HTML_FILE wxTextFile m_file; #endif + + DECLARE_NO_COPY_CLASS(MyHtmlListBox) }; class MyFrame : public wxFrame @@ -403,9 +406,9 @@ MyHtmlListBox::MyHtmlListBox(wxWindow *parent, bool multi) SetMargins(5, 5); #ifdef USE_HTML_FILE - if ( !m_file.Open("results") ) + if ( !m_file.Open(_T("results")) ) { - wxLogError("Failed to open results file"); + wxLogError(_T("Failed to open results file")); } else {