KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q29730: Editor "User’s Guide" C-Extension Sample Generates Warnings

Article: Q29730
Product(s): See article
Version(s): 1.00   | 1.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 12-JUL-1988

Problem:
    When I compile the sample program on Page 85 of the "Microsoft
Editor for MS OS/2 and MS-DOS: User's Guide," I get two warning
messages.
   These warning messages are generated on the following two sections
of the sample program:

   1. struct swiDesc swiTable [] = {
            { NULL, NULL, NULL }
       };

   2. struct cmdDesc cmdTable [] = {
            { "Upper", Upper, 0, BOXSTR | TEXTARG },
            { NULL, NULL, NULL, NULL }
       };

Response:
  These warnings will not cause a problem. You can, however, make the
following two changes:

   1. struct swiDesc swiTable [] = {
            { NULL, NULL, 0 }
       };

   2. struct cmdDesc cmdTable [] = {
            { "Upper", Upper, 0, BOXSTR | TEXTARG },
            { NULL, NULL, 0, 0 }
       };

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.