Tools.h++ Class Reference

Table Of Contents
RWDDEstreambuf(HANDLE hMem);
Constructs an RWDDEstreambuf in static mode, using the memory block with global
handle hMem. The effect of gets and puts beyond the size of this block is unspecified.
The format of the DDE transfer, and the specifics of DDE acknowledgments, memory
allocations, etc., can be obtained by using the member functions defined below.
Public Destructor
~RWDDEstreambuf();
If member function str() has not been called, the destructor unlocks the handle and, if in
dynamic mode, also frees it.
Public Member Functions
Because RWDDEstreambuf inherits from streambuf, any of the latter's member functions can
be used. Furthermore, RWDDEstreambuf has been designed to be analogous to streambuf.
However, note that the return type of str() is a HANDLE, rather than a char*.
BOOL
ackReq() const;
Returns whether this DDE exchange requests an acknowledgement. See the Windows
Reference, Volume 2, for more information.
WORD
format() const;
Returns the format of this DDE exchange (e.g., CF_TEXT for text exchange, etc.). See
the Windows Reference, Volume 2, for more information.
BOOL
release() const;
Returns TRUE if the client is responsible for the release of of the memory returned by
str(). See the Windows Reference, Volume 2, for more information.
BOOL
response() const;
Returns TRUE if this data is in response to a WM_DDE_REQUEST message. Otherwise,
it is in response to a WM_DDE_ADVISE message. See the Windows Reference, Volume
2, for more information.
HANDLE
str();
Returns an (unlocked) HANDLE to the global memory being used. The
RWDDEstreambuf should now be regarded as "frozen": the effect of inserting any more
characters is undefined. If the RWDDEstreambuf was constructed in dynamic mode, and