bool wxDebugContext::SetFile(const wxString& file)
{
- ofstream *str = new ofstream(file.fn_str());
+ ofstream *str = new ofstream(file.mb_str());
if (str->bad())
{
wxDebugFree(pData, FALSE);
}
// New operator 21/11/1998
-void operator delete[](void* pData, char* /* fileName */, int /* lineNum */)
+void operator delete[](void* pData, wxChar* /* fileName */, int /* lineNum */)
{
wxDebugFree(pData, TRUE);
}
// Trace: send output to the current debugging stream
void wxTrace(const wxChar *fmt ...)
{
- va_list ap;
+#if 1
+ wxFAIL_MSG(wxT("wxTrace is now obsolete. Please use wxDebugXXX instead."));
+#else
+ va_list ap;
static wxChar buffer[512];
va_start(ap, fmt);
#else
fprintf(stderr, buffer);
#endif
+#endif
}
// Trace with level
void wxTraceLevel(int level, const wxChar *fmt ...)
{
+#if 1
+ wxFAIL_MSG(wxT("wxTrace is now obsolete. Please use wxDebugXXX instead."));
+#else
if (wxDebugContext::GetLevel() < level)
return;
va_start(ap, fmt);
#ifdef __WXMSW__
- wvsprintf(buffer,fmt,ap) ;
+ wxWvsprintf(buffer,fmt,ap) ;
#else
vsprintf(buffer,fmt,ap) ;
#endif
#else
fprintf(stderr, buffer);
#endif
+#endif
}
#else // wxUSE_MEMORY_TRACING && defined(__WXDEBUG__)