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:
@@ -24,6 +24,7 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
@@ -126,7 +127,26 @@ int WXDLLEXPORT wxVprintf(const wxChar *fmt, va_list argptr)
|
||||
{
|
||||
wxString str;
|
||||
str.PrintfV(fmt,argptr);
|
||||
printf("%s",(const char*)str.mb_str());
|
||||
printf("%s", (const char*)str.mb_str());
|
||||
return str.Len();
|
||||
}
|
||||
|
||||
int WXDLLEXPORT wxFprintf(FILE *stream, const wxChar *fmt, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
int ret;
|
||||
|
||||
va_start(argptr, fmt);
|
||||
ret = wxFvprintf(stream, fmt, argptr);
|
||||
va_end(argptr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int WXDLLEXPORT wxFvprintf(FILE *stream, const wxChar *fmt, va_list argptr)
|
||||
{
|
||||
wxString str;
|
||||
str.PrintfV(fmt,argptr);
|
||||
fprintf(stream, "%s", (const char*)str.mb_str());
|
||||
return str.Len();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user