blind fix to make IPC work again by overriding OnExec() correctly in IPC connection class

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-07-03 12:43:06 +00:00
parent 3b4af85307
commit 587b4c84fb
2 changed files with 4 additions and 6 deletions

View File

@ -407,14 +407,12 @@ hvConnection::~hvConnection()
wxGetApp().GetConnections().DeleteObject(this); wxGetApp().GetConnections().DeleteObject(this);
} }
bool hvConnection::OnExecute(const wxString& WXUNUSED(topic), bool hvConnection::OnExec(const wxString& WXUNUSED(topic),
wxChar *data, const wxString& data)
int WXUNUSED(size),
wxIPCFormat WXUNUSED(format))
{ {
// wxLogStatus("Execute command: %s", data); // wxLogStatus("Execute command: %s", data);
if ( !wxStrncmp( data, wxT("--intstring"), 11 ) ) if ( data == "--intstring" )
{ {
long i; long i;
wxString argStr = data; wxString argStr = data;

View File

@ -67,7 +67,7 @@ public:
hvConnection(); hvConnection();
virtual ~hvConnection(); virtual ~hvConnection();
bool OnExecute(const wxString& topic, wxChar*data, int size, wxIPCFormat format); bool OnExec(const wxString& topic, const wxString& data);
wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format); wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format); bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
bool OnStartAdvise(const wxString& topic, const wxString& item); bool OnStartAdvise(const wxString& topic, const wxString& item);