X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1583600031e1737cd11ed2b40e31aad1b610a876..eddcc4b442fdfeabf0c317d15663cf09c9888d56:/samples/typetest/typetest.cpp diff --git a/samples/typetest/typetest.cpp b/samples/typetest/typetest.cpp index 2dffb5f417..617c6d74ca 100644 --- a/samples/typetest/typetest.cpp +++ b/samples/typetest/typetest.cpp @@ -6,7 +6,7 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows license +// Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx/wx.h". @@ -166,6 +166,8 @@ void MyApp::DoStreamDemo(wxCommandEvent& WXUNUSED(event)) text_output << str << _T("\n"); std_file_output << str.ToAscii() << "\n"; + std_file_output.close(); + textCtrl.WriteText( _T("\nReading from ifstream:\n") ); wxSTD ifstream std_file_input( "test_std.dat" ); @@ -922,12 +924,12 @@ void MyApp::DoMIMEDemo(wxCommandEvent& WXUNUSED(event)) _T("XyZ %s"), _T("XyZ -p %s"), _T("The one and only XYZ format file"), - _T("xyz"), _T("123"), NULL), + _T("xyz"), _T("123"), wxNullPtr), wxFileTypeInfo(_T("text/html"), _T("lynx %s"), _T("lynx -dump %s | lpr"), _T("HTML document (from fallback)"), - _T("htm"), _T("html"), NULL), + _T("htm"), _T("html"), wxNullPtr), // must terminate the table with this! wxFileTypeInfo()