1998-05-20 14:25:30 +00:00
|
|
|
\section{\class{wxDDEClient}}\label{wxddeclient}
|
|
|
|
|
|
|
|
A wxDDEClient object represents the client part of a client-server DDE
|
1999-01-25 18:33:08 +00:00
|
|
|
(Dynamic Data Exchange) conversation.
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
To create a client which can communicate with a suitable server,
|
|
|
|
you need to derive a class from wxDDEConnection and another from wxDDEClient.
|
|
|
|
The custom wxDDEConnection class will intercept communications in
|
|
|
|
a `conversation' with a server, and the custom wxDDEServer is required
|
2000-07-15 19:51:35 +00:00
|
|
|
so that a user-overridden \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member can return
|
1998-05-20 14:25:30 +00:00
|
|
|
a wxDDEConnection of the required class, when a connection is made.
|
|
|
|
|
1999-01-25 18:33:08 +00:00
|
|
|
This DDE-based implementation is
|
|
|
|
available on Windows only, but a platform-independent, socket-based version
|
|
|
|
of this API is available using \helpref{wxTCPClient}{wxtcpclient}.
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
1999-01-25 18:33:08 +00:00
|
|
|
wxClientBase\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dde.h>
|
|
|
|
|
1998-05-20 14:25:30 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-01-25 18:33:08 +00:00
|
|
|
\helpref{wxDDEServer}{wxddeserver}, \helpref{wxDDEConnection}{wxddeconnection},
|
|
|
|
\helpref{Interprocess communications overview}{ipcoverview}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxDDEClient::wxDDEClient}
|
|
|
|
|
|
|
|
\func{}{wxDDEClient}{\void}
|
|
|
|
|
|
|
|
Constructs a client object.
|
|
|
|
|
|
|
|
\membersection{wxDDEClient::MakeConnection}\label{wxddeclientmakeconnection}
|
|
|
|
|
1999-01-25 18:33:08 +00:00
|
|
|
\func{wxConnectionBase *}{MakeConnection}{\param{const wxString\& }{host}, \param{const wxString\& }{service}, \param{const wxString\& }{topic}}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
Tries to make a connection with a server specified by the host
|
|
|
|
(machine name under UNIX, ignored under Windows), service name (must
|
|
|
|
contain an integer port number under UNIX), and topic string. If the
|
|
|
|
server allows a connection, a wxDDEConnection object will be returned.
|
|
|
|
The type of wxDDEConnection returned can be altered by overriding
|
|
|
|
the \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member to return your own
|
|
|
|
derived connection object.
|
|
|
|
|
|
|
|
\membersection{wxDDEClient::OnMakeConnection}\label{wxddeclientonmakeconnection}
|
|
|
|
|
1999-01-25 18:33:08 +00:00
|
|
|
\func{wxConnectionBase *}{OnMakeConnection}{\void}
|
1998-05-20 14:25:30 +00:00
|
|
|
|
|
|
|
The type of \helpref{wxDDEConnection}{wxddeconnection} returned from a \helpref{wxDDEClient::MakeConnection}{wxddeclientmakeconnection} call can
|
|
|
|
be altered by deriving the {\bf OnMakeConnection} member to return your
|
1999-01-25 18:33:08 +00:00
|
|
|
own derived connection object. By default, a wxDDEConnection
|
1998-05-20 14:25:30 +00:00
|
|
|
object is returned.
|
|
|
|
|
|
|
|
The advantage of deriving your own connection class is that it will
|
|
|
|
enable you to intercept messages initiated by the server, such
|
|
|
|
as \helpref{wxDDEConnection::OnAdvise}{wxddeconnectiononadvise}. You may also want to
|
|
|
|
store application-specific data in instances of the new class.
|
|
|
|
|
|
|
|
\membersection{wxDDEClient::ValidHost}
|
|
|
|
|
|
|
|
\func{bool}{ValidHost}{\param{const wxString\& }{host}}
|
|
|
|
|
|
|
|
Returns TRUE if this is a valid host name, FALSE otherwise. This always
|
|
|
|
returns TRUE under MS Windows.
|
|
|
|
|
|
|
|
|