DDE Library Chapter 6
LabWindows/CVI Standard Libraries 6-12 © National Instruments Corporation
Purpose
Called by client to write data to a DDE server application.
Parameters
Input conversationHandle unsigned integer Uniquely identifies the
conversation.
itemName string Uniquely identifies the output
item; for example, system.
dataFormat unsigned integer Valid data format; for example,
CF_TEXT.
dataPointer void pointer Buffer holding data.
dataSize unsigned integer Number of bytes to write.
Limited to 64 KB under
Windows 3.1 and Windows 95.
timeout unsigned integer Timeout in ms.
Return Value
status integer Refer to error codes in
Table 6-3.
Parameter Discussion
dataFormat must be a valid data format recognized by Microsoft Windows. The following are
the valid data formats supported by Microsoft Windows:
CF_TEXT CF_PALETTE
CF_BITMAP CF_PENDATA
CF_METAFILEPICT CF_RIFF
CF_SYLK CF_WAVE
CF_DIF CF_OWNERDISPLAY
CF_TIFF CF_DSPTEXT
CF_OEMTEXT CF_DSPBITMAP
CF_DIB CF_DSPMETAFILEPICT
Refer to Microsoft programmers' documention for Windows 3.x for an in-depth discussion of
DDE programming and meaning of each data format type.
status returns a positive number representing the number of bytes that were successfully read. A
negative number corresponds to the error code.