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

ID: Q125229

The information in this article applies to: 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

Last Reviewed: May 1, 1997