Tools.h++ Class Reference

Table Of Contents
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
RWDDEstreambuf
RWDDEstreambuf RWCLIPstreambuf streambuf
Synopsis
Description
Persistence
Example
Public Constructors
Public Destructor
Public Member Functions
Synopsis
#include <rw/winstrea.h>
#include <iostream.h>
iostream str( new RWDDEstreambuf(CF_TEXT, TRUE, TRUE, TRUE) ) ;
Description
Class RWDDEstreambuf is a specialized streambuf that gets and puts sequences of characters
to Microsoft Windows global memory that has been allocated with the GMEM_DDESHARE
flag. It can be used to exchange data through the Windows Dynamic Data Exchange (DDE)
facility.
The class has two modes of operation: dynamic and static. In dynamic mode, memory is
allocated and reallocated on an as-needed basis. If too many characters are inserted into the
internal buffer for its present size, then it will be resized and old characters copied over into any
new memory as necessary. This is transparent to the user. It is expected that this mode would be
used primarily by the DDE server. In static mode, the buffer streambuf is constructed from a
specific piece of memory. No reallocations will be done. It is expected that this mode would be
used primarily by the DDE client.