if ( !s.empty() )
{
wxString ext = s.Right(4).Lower();
- if (ext == _T(".zip") || ext == _T(".htb") || ext == _T(".hhp"))
+ if (ext == wxT(".zip") || ext == wxT(".htb") || ext == wxT(".hhp"))
{
wxBusyCursor bcur;
wxFileName fileName(s);
#else
#define CREATE_STD_ICON(iconId, xpmRc) \
{ \
- wxIcon icon(_T(iconId)); \
+ wxIcon icon(wxT(iconId)); \
wxBitmap bmp; \
bmp.CopyFromIcon(icon); \
return bmp; \
wxGetApp().GetConnections().DeleteObject(this);
}
-bool hvConnection::OnExecute(const wxString& WXUNUSED(topic),
- wxChar *data,
- int WXUNUSED(size),
- wxIPCFormat WXUNUSED(format))
+bool hvConnection::OnExec(const wxString& WXUNUSED(topic),
+ const wxString& data)
{
// wxLogStatus("Execute command: %s", data);
- if ( !wxStrncmp( data, wxT("--intstring"), 11 ) )
+ if ( data == "--intstring" )
{
long i;
wxString argStr = data;
bool hvConnection::OnPoke(const wxString& WXUNUSED(topic),
const wxString& item,
- wxChar *data,
- int WXUNUSED(size),
- wxIPCFormat WXUNUSED(format))
+ const void *buf,
+ size_t size,
+ wxIPCFormat format)
{
+ const wxString data = GetTextFromData(buf, size, format);
+
// wxLogStatus("Poke command: %s = %s", item.c_str(), data);
//topic is not tested
return true;
}
-wxChar *hvConnection::OnRequest(const wxString& WXUNUSED(topic),
- const wxString& WXUNUSED(item),
- int * WXUNUSED(size),
- wxIPCFormat WXUNUSED(format))
-{
- return NULL;
-}
-
-bool hvConnection::OnStartAdvise(const wxString& WXUNUSED(topic),
- const wxString& WXUNUSED(item))
-{
- return true;
-}
-
#endif // #if wxUSE_IPC