- if ( buf )
- fprintf(stderr, "%s", (const char*) buf);
- else // print at least something
- fprintf(stderr, "%s", (const char*) str.ToAscii());
- }
+ wxString title;
+ if ( wxTheApp )
+ title = wxTheApp->GetAppDisplayName();
+ else // Use some title to avoid default "Error"
+ title = _("Message");
+
+ ::MessageBox(NULL, str.t_str(), title.t_str(), MB_ICONINFORMATION | MB_OK);
+#else // !__WINDOWS__
+ wxUnusedVar(m_flags);
+
+ // TODO: use the native message box for the other ports too
+ wxMessageOutputStderr::Output(str);
+#endif // __WINDOWS__/!__WINDOWS__