Article ID: 107387
Article Last Modified on 11/21/2006
char lpszString [80];
lstrcpy (lpszString, "[FileOpen(""C:\README.DOC"")]");
DdeClientTransaction (lpszString, // string buffer
lstrlen (lpszString)+1, // string buffer length
hConv,
hszItem,
CF_TEXT,
XTYP_POKE,
1000,
NULL);
char lpszString [80];
HDDEDATA hData;
lstrcpy (lpszString, "[FileOpen(""C:\README.DOC"")]");
hData = DdeCreateDataHandle (idInst,
lpszString,
lstrlen (lpszString)+1,
0,
NULL,
CF_TEXT,
0);
if (!hData)
DdeClientTransaction (hData, // string buffer
-1, // indicates hData is a data handle
hConv,
hszItem,
CF_TEXT,
XTYP_POKE,
1000,
NULL);function does not include the terminating null character, this cancause the system to append garbage characters to the end of the string, thus sending an invalid string to the server application.
Additional query words: 3.10 3.50 4.00 gpf gp-fault
Keywords: kbprb KB107387