X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4ada568223b79c8a5769cc351c36a8e2ccd7841..6085b116d60c1f5e6b8a036aed1941477182867d:/samples/wxsocket/server.cpp diff --git a/samples/wxsocket/server.cpp b/samples/wxsocket/server.cpp index 2c52190936..8eefa8ca1e 100644 --- a/samples/wxsocket/server.cpp +++ b/samples/wxsocket/server.cpp @@ -1,12 +1,12 @@ /* * File: server.cpp * Purpose: wxSocket: server demo - * Author: LAVAUX Guilhem (from minimal.cc) + * Author: LAVAUX Guilhem * Created: June 1997 * Updated: - * Copyright: (c) 1993, AIAI, University of Edinburgh - * (C) 1997, LAVAUX Guilhem + * Copyright: (C) 1997, LAVAUX Guilhem */ + #ifdef __GNUG__ #pragma implementation #pragma interface @@ -22,8 +22,13 @@ #ifndef WX_PRECOMP #include "wx/wx.h" #endif + #include "wx/socket.h" +#if defined(__WXMOTIF__) || defined(__WXGTK__) +#include "mondrian.xpm" +#endif + // Define a new application type class MyApp: public wxApp { public: @@ -77,12 +82,7 @@ bool MyApp::OnInit(void) MyFrame *frame = new MyFrame(NULL); // Give it an icon -#ifdef wx_msw - frame->SetIcon(new wxIcon("mondrian")); -#endif -#ifdef wx_x - frame->SetIcon(new wxIcon("aiai.xbm")); -#endif + frame->SetIcon(wxICON(mondrian)); // Make a menubar wxMenu *file_menu = new wxMenu; @@ -104,7 +104,7 @@ bool MyApp::OnInit(void) void MySock::OldOnNotify(wxRequestEvent flags) { - extern wxList wxPendingDelete; + extern wxList WXDLLEXPORT wxPendingDelete; switch (flags) { case EVT_READ: @@ -166,7 +166,7 @@ MyFrame::~MyFrame() } // Intercept menu commands -void MyFrame::Menu_Exit(wxCommandEvent& event) +void MyFrame::Menu_Exit(wxCommandEvent& WXUNUSED(event)) { Close(TRUE); }