Article View: comp.lang.c++.leda
Article #180DDE error sending text
From: Michael P. Lascuola
Date: Fri, 16 Feb 1996 21:41
Date: Fri, 16 Feb 1996 21:41
44 lines
1571 bytes
1571 bytes
HELP!!
DDE Question:
I have a VFP DDE server set up using DDE to process SQL queries.
All is OK, except for when I need to send a UDF call as part of
a query.
When sending the DDE request, I get errors if I try to send
characters like quotes("), single quote ('), brackets ([]),
or even a caret (^) to delimit strings inside an item.
I've tried sending a backslash escape character before the
offending character but to no avail.
For example, to send a single quote, I've tried all of these, with
the same error message:
String Error
-------- --------------------------------
' DMLERR_INVALIDPARAMETER
\' DMLERR_INVALIDPARAMETER
\\' DMLERR_INVALIDPARAMETER
'' DMLERR_INVALIDPARAMETER
Here is an example of the code creating this problem:
C++ side:
strcpy(cpQuery, "SELECT UDF('ACCESS') FROM CDR.DBF") ;
hRetData = DdeClientTransaction((unsigned char*)cpQuery,
strlen(cpQuery) + 1,
hConv,
hszTopic2,
CF_TEXT,
XTYP_REQUEST,
TIMEOUT_ASYNC,
NULL);
Any thoughts??
Technical Details
Message-ID:
<3124FA02.13AA@mcimail.com>Path:
arc1-ca.pugleaf.net!news.internetMCI.com!news-adminShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.internetMCI.com!news-admin From: "Michael P. Lascuola" <mlascuola@mcimail.com> Newsgroups: comp.lang.c++.leda Subject: DDE error sending text Date: Fri, 16 Feb 1996 14:41:22 -0700 Organization: InternetMCI Message-ID: <3124FA02.13AA@mcimail.com> NNTP-Posting-Host: 166.37.9.79 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0b6a (Win95; I)