KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q48792: Include Filenames More Than Eight Characters Are Truncated

Article: Q48792
Product(s): See article
Version(s): 5.00 5.10 | 5.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | S_QuickC S_QuickASM | mspl13_c
Last Modified: 16-JAN-1990

When given a filename that is more than eight characters, the file
system under MS-DOS truncates the filename to eight characters.
Because of this, the following include statement

   #include <gefildefish.h>

looks for the following header file to resolve the reference:

   gefildef.h

As long as the file gefildef.h is found on the disk, no error or
warning message is displayed.

Under OS/2 Version 1.10, however, the file system does not truncate
names, but filenames with more than eight characters are not used.
Therefore, the following fatal error message appears when specifying
an include file with more than characters:

   C1015: cannot open include file '<filename>'

This problem also occurs in QuickC Versions 1.01, 2.00, 2.01 and
QuickAssembler Version 2.01.

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.