BUG: Double Back-slash (\\) in C Can Cause ESQL for C Errors

Last reviewed: April 30, 1997
Article ID: Q125229

The information in this article applies to:
  • Microsoft Embedded SQL for Programmer's Toolkit, version 4.22
BUG# ESQL-C: 9941 (4.22)

SYMPTOMS

The Embedded SQL for C (ESQL-C) precompiler may generate compiler errors when existing strings in C functions using a double-backslash (\\). Errors such as the following may be produced:

   Warning: example1.sqc, line 72: Undetermined string.
   strcpy (pathname,

CAUSE

The ESQL-C precompiler (NSQLPREP.EXE and SQLPREP.EXE) can incorrectly parse the use of a double-backslash (\\) within the source of an ESQL-C file . The following function call to strcpy() can cause the problem to occur:

   strcpy (pathname, "c:\\");

WORKAROUND

Avoid the use of a double-backslash (\\) in a string within an ESQL-C application.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Embedded SQL for C Programmer's Toolkit version 4.22. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: ESQL for C Windows NT
Keywords : kbprg SSrvESQL_C
Version : 4.22 | 4.22 | 4.22
Platform : MS-DOS OS/2 WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.