PRB: Compile Error In Postscript Driver Shipped w/ Windows 3.1 D

Last reviewed: February 23, 1995
Article ID: Q126359
The information in this article applies to:
  • Microsoft Windows Device Drvier Development Kit (DDK) for Windows version 3.1

SYMPTOMS

When compiling the postscript driver that shipped with the Windows version 3.1 DDK using Microsoft C version 7.0 or higher, you encounter this error:

   enum.c
   enum.c ( 211 ) : error C2082: redefinition of formal parameter 'lplf'

RESOLUTION

To fix the problem:

  1. Modify the ScoreFont function definition in ENUM.C to look like this:

    Byte PASCAL ScoreFont ( lpbPublic, lplf, HighScore, lpScoreArray,

                                                                lpScoreFunc)
       HPBYTE          lpbPublic;
       LPLOGFONT  lplf;
       BYTE                HighScore;
       LPBYTE           lpScoreArray;
       BYTE   ( PASCAL *lpScoreFunc ) ( LPFONTINFO, LPLOGFONT );
       {
           .....
           ......
           ......
       }
    
    

  2. Modify the prototype for the function at the beginning of the file to look like this:

    Byte PASCAL ScoreFont (

          HPBYTE           lpbPublic;
          LPLOGFONT   lplf;
          BYTE                 HighScore;
          LPBYTE            lpScoreArray;
          BYTE ( PASCAL *lpScoreFunc ) ( LPFONTINFO, LPLOGFONT ) ) ;
    


Additional reference words: compile errors errmsg err msg
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: DDKPRNT


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: February 23, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.