// --------------------------------------------------------------------------
// the application icon
-#include "mondrian.xpm"
+#if !defined(__WXMSW__) && !defined(__WXPM__)
+ #include "../sample.xpm"
+#endif
// --------------------------------------------------------------------------
// classes
// Create the main application window
MyFrame *frame = new MyFrame();
- // Show it and tell the application that it's our main window
+ // Show it
frame->Show(true);
- SetTopWindow(frame);
// success
return true;
wxDefaultPosition, wxSize(300, 200))
{
// Give the frame an icon
- SetIcon(wxICON(mondrian));
+ SetIcon(wxICON(sample));
// Make menus
m_menuFile = new wxMenu();
// Get the data
wxStringOutputStream sout;
if ( data->Read(sout).GetLastError() != wxSTREAM_EOF )
+ {
wxLogError("Error reading the input stream.");
+ }
wxLogMessage("Text retrieved from URL \"%s\" follows:\n%s",
urlname, sout.GetString());