2. wxLogStatus() will not assert if there is no statusbar to set text for
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5507
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ if ( pFrame && pFrame->GetStatusBar() )
pFrame->SetStatusText(szString);
}
#endif // wxUSE_STATUSBAR
pFrame->SetStatusText(szString);
}
#endif // wxUSE_STATUSBAR
#endif
#include <stdarg.h>
#endif
#include <stdarg.h>
-#include "wx/dde.h" // for WX_DDE hack in wxExecute
+#if wxUSE_IPC
+ #include "wx/dde.h" // for WX_DDE hack in wxExecute
+#endif // wxUSE_IPC
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
// constants
return DefWindowProc(hWnd, message, wParam, lParam);
}
}
return DefWindowProc(hWnd, message, wParam, lParam);
}
}
long wxExecute(const wxString& cmd, bool sync, wxProcess *handler)
{
wxCHECK_MSG( !!cmd, 0, wxT("empty command in wxExecute") );
long wxExecute(const wxString& cmd, bool sync, wxProcess *handler)
{
wxCHECK_MSG( !!cmd, 0, wxT("empty command in wxExecute") );
// DDE hack: this is really not pretty, but we need to allow this for
// transparent handling of DDE servers in wxMimeTypesManager. Usually it
// returns the command which should be run to view/open/... a file of the
// DDE hack: this is really not pretty, but we need to allow this for
// transparent handling of DDE servers in wxMimeTypesManager. Usually it
// returns the command which should be run to view/open/... a file of the
{
// no DDE
command = cmd;
{
// no DDE
command = cmd;
// second part of DDE hack: now establish the DDE conversation with the
// just launched process
if ( !!ddeServer )
// second part of DDE hack: now establish the DDE conversation with the
// just launched process
if ( !!ddeServer )
wxLogError(_("Couldn't launch DDE server '%s'."), command.c_str());
}
}
wxLogError(_("Couldn't launch DDE server '%s'."), command.c_str());
}
}