1. more wxMotif fixes

2. wxGetNumberFromUser added
3. more compilation fixes when compiling without sockets


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-07-23 21:03:02 +00:00
parent c45a644eda
commit 31528cd3ca
63 changed files with 1153 additions and 1361 deletions

View File

@@ -281,10 +281,10 @@ bool wxDocument::OnSaveDocument(const wxString& file)
msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
ofstream store(file.fn_str());
ofstream store(wxString(file.fn_str()));
if (store.fail() || store.bad())
#else
wxFileOutputStream store(file.fn_str());
wxFileOutputStream store(wxString(file.fn_str()));
if (store.LastError() != 0)
#endif
{
@@ -317,10 +317,10 @@ bool wxDocument::OnOpenDocument(const wxString& file)
msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
ifstream store(file.fn_str());
ifstream store(wxString(file.fn_str()));
if (store.fail() || store.bad())
#else
wxFileInputStream store(file.fn_str());
wxFileInputStream store(wxString(file.fn_str()));
if (store.LastError() != 0)
#endif
{