BUG: Visual Workbench Interprets /* in a String as a Comment

Last reviewed: July 22, 1997
Article ID: Q120960
1.00 1.50 1.51 WINDOWS kbtool kbbuglist

The information in this article applies to:

  • The Visual Workbench included with: Microsoft Visual C++ for Windows, versions 1.0, 1.5, and 1.51

SYMPTOMS

The Visual Workbench uses color coded syntax to make programming easier. If "/*" (without the quotation marks) is part of a literal string, the development environment interprets it as the beginning of a comment and changes the color of all the text in the file until the environment finds a matching "*/" (without the quotation marks) to end the comment. The sample code in the More Information section below illustrates this problem.

STATUS

Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This is not a problem in Visual C++ 32-bit Edition.

MORE INFORMATION

Sample Code

/* Remove the space between the      */
/* slash and star to see the problem */

char test[20]="/ *";
void main(void)
{ }


Additional reference words: 1.00 1.50
KBCategory: kbtool kbbuglist kbcode
KBSubcategory: VWBIss
Keywords : kb16bitonly


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: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.