More Unicode stuff. Implemented wxFprintf.

Some printfs changed to wxPrintf, fprintf to wxFprintf, as well as the
usual char->wxChar and _T().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
1999-04-13 10:34:24 +00:00
parent 6d9bd0682c
commit 84fff0b395
8 changed files with 76 additions and 52 deletions

View File

@@ -535,9 +535,9 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
OutputDebugString(wxString(szString) + _T("\n\r"));
#else
// send them to stderr
fprintf(stderr, "%s: %s\n",
level == wxLOG_Trace ? "Trace" : "Debug",
(const char*)wxConv_libc.cWX2MB(szString));
wxFprintf(stderr, _T("%s: %s\n"),
level == wxLOG_Trace ? _T("Trace") : _T("Debug"),
szString);
fflush(stderr);
#endif
}
@@ -1018,7 +1018,7 @@ void wxOnAssert(const char *szFile, int nLine, const wxChar *szMsg)
// make life easier for people using VC++ IDE: clicking on the message
// will take us immediately to the place of the failed assert
#ifdef __VISUALC__
sprintf(szBuf, _T("%s(%d): assert failed"), szFile, nLine);
wxSprintf(szBuf, _T("%s(%d): assert failed"), szFile, nLine);
#else // !VC++
// make the error message more clear for all the others
#ifdef wxSprintf