KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q46016: C2018: Unknown Characters During Compile

Article: Q46016
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 10-OCT-1989

Problem:

When I copied an example from the QuickC Advisor (on-line help) and
tried to compile it, I received errors with one of the following
messages:

   volume.c(2) : error C2018 : unknown character '0xc4'
or
   volume.c(1) : error C2018 : unknown character '0x11'

Response:

It is possible to actually copy the Advisor header along with the
sample program. The example screens have a list of help buttons, e.g.
<Contents> or <Index>, separated from the sample program by a line
consisting of the ASCII extended character '0xc4'. If you mistakenly
copy either of these two lines from the help screen, the compiler
shows the error C2018.

To prevent this problem, delete the Advisor header lines from your
source file.

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.

Copyright Microsoft Corporation 1986-2002.