National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 6 DDE Library
© National Instruments Corporation 6-11 LabWindows/CVI Standard Libraries
dataFormat
unsigned integer Valid data format; for example,
CF_TEXT.
dataSize
unsigned integer Number of bytes to read.
Limited to 64 KB under
Windows 3.1 and Windows 95.
timeout
unsigned integer Timeout in ms.
Output
dataBuffer
void pointer Buffer in which to receive data.
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.
See Also
ConnectToDDEServer, ClientDDEWrite
ClientDDEWrite
int status = ClientDDEWrite (unsigned int conversationHandle, char itemName[],
unsigned int dataFormat, void *dataPointer,
unsigned int dataSize, unsigned int timeout);