Microsoft KB Archive/125229

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

PSS ID Number: 125229

Article Last Modified on 12/15/1999

-

The information in this article applies to:


 * Microsoft Embedded SQL for C Programmer's Toolkit 4.22

-



This article was previously published under Q125229



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: kbprogramming KB125229

Technology: kbAudDeveloper kbSQLeMCPTK422 kbSQLEmCPTKSearch kbSQLServSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.