]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ddeclint.tex
added ReadType convenience functions (patch 1764160)
[wxWidgets.git] / docs / latex / wx / ddeclint.tex
CommitLineData
a660d684
KB
1\section{\class{wxDDEClient}}\label{wxddeclient}
2
a660d684 3A wxDDEClient object represents the client part of a client-server DDE
e2a6f233 4(Dynamic Data Exchange) conversation.
a660d684
KB
5
6To create a client which can communicate with a suitable server,
7you need to derive a class from wxDDEConnection and another from wxDDEClient.
8The custom wxDDEConnection class will intercept communications in
9a `conversation' with a server, and the custom wxDDEServer is required
f6bcfd97 10so that a user-overridden \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member can return
a660d684
KB
11a wxDDEConnection of the required class, when a connection is made.
12
e2a6f233
JS
13This DDE-based implementation is
14available on Windows only, but a platform-independent, socket-based version
15of this API is available using \helpref{wxTCPClient}{wxtcpclient}.
16
a660d684
KB
17\wxheading{Derived from}
18
e2a6f233
JS
19wxClientBase\\
20\helpref{wxObject}{wxobject}
a660d684 21
954b8ae6
JS
22\wxheading{Include files}
23
24<wx/dde.h>
25
a7af285d
VZ
26\wxheading{Library}
27
28\helpref{wxBase}{librarieslist}
29
a660d684
KB
30\wxheading{See also}
31
e2a6f233
JS
32\helpref{wxDDEServer}{wxddeserver}, \helpref{wxDDEConnection}{wxddeconnection},
33\helpref{Interprocess communications overview}{ipcoverview}
a660d684
KB
34
35\latexignore{\rtfignore{\wxheading{Members}}}
36
f510b7b2 37\membersection{wxDDEClient::wxDDEClient}\label{wxddeclientctor}
a660d684
KB
38
39\func{}{wxDDEClient}{\void}
40
41Constructs a client object.
42
43\membersection{wxDDEClient::MakeConnection}\label{wxddeclientmakeconnection}
44
e2a6f233 45\func{wxConnectionBase *}{MakeConnection}{\param{const wxString\& }{host}, \param{const wxString\& }{service}, \param{const wxString\& }{topic}}
a660d684
KB
46
47Tries to make a connection with a server specified by the host
48(machine name under UNIX, ignored under Windows), service name (must
49contain an integer port number under UNIX), and topic string. If the
50server allows a connection, a wxDDEConnection object will be returned.
51The type of wxDDEConnection returned can be altered by overriding
52the \helpref{wxDDEClient::OnMakeConnection}{wxddeclientonmakeconnection} member to return your own
53derived connection object.
54
55\membersection{wxDDEClient::OnMakeConnection}\label{wxddeclientonmakeconnection}
56
e2a6f233 57\func{wxConnectionBase *}{OnMakeConnection}{\void}
a660d684
KB
58
59The type of \helpref{wxDDEConnection}{wxddeconnection} returned from a \helpref{wxDDEClient::MakeConnection}{wxddeclientmakeconnection} call can
60be altered by deriving the {\bf OnMakeConnection} member to return your
e2a6f233 61own derived connection object. By default, a wxDDEConnection
a660d684
KB
62object is returned.
63
64The advantage of deriving your own connection class is that it will
65enable you to intercept messages initiated by the server, such
f510b7b2 66as \helpref{wxDDEConnection::OnAdvise}{wxconnectiononadvise}. You may also want to
a660d684
KB
67store application-specific data in instances of the new class.
68
f510b7b2 69\membersection{wxDDEClient::ValidHost}\label{wxddeclientvalidhost}
a660d684
KB
70
71\func{bool}{ValidHost}{\param{const wxString\& }{host}}
72
43e8916f
MW
73Returns \true if this is a valid host name, \false otherwise. This always
74returns \true under MS Windows.
a660d684 75