+void MyFrame::OnDDERequest(wxCommandEvent& WXUNUSED(event))
+{
+ if ( !GetDDEServer() )
+ return;
+
+ wxDDEClient client;
+ wxConnectionBase *conn = client.MakeConnection("", m_server, m_topic);
+ if ( !conn )
+ {
+ wxLogError(_T("Failed to connect to the DDE server '%s'."),
+ m_server.c_str());
+ }
+ else
+ {
+ if ( !conn->Request(m_cmdDde) )
+ {
+ wxLogError(_T("Failed to send request '%s' via DDE."),
+ m_cmdDde.c_str());
+ }
+ else
+ {
+ wxLogStatus(_T("Successfully sent DDE request."));
+ }
+ }
+}
+
+#endif // __WINDOWS__
+