X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4636a1e8f869e405523113971791b3efac5f7c4a..684761db46d96d4a919d8e94edd1e9065978e675:/samples/htlbox/htlbox.cpp?ds=sidebyside diff --git a/samples/htlbox/htlbox.cpp b/samples/htlbox/htlbox.cpp index 1a87b03df6..97a8815af9 100644 --- a/samples/htlbox/htlbox.cpp +++ b/samples/htlbox/htlbox.cpp @@ -84,6 +84,8 @@ protected: #ifdef USE_HTML_FILE wxTextFile m_file; #endif + + DECLARE_NO_COPY_CLASS(MyHtmlListBox) }; class MyFrame : public wxFrame @@ -403,9 +405,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 {