Microsoft KB Archive/126359

{|
 * width="100%"|

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

 * }

Q126359

-

The information in this article applies to:


 * Microsoft Windows Device 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:

  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 ); {      .....       ......       ......   }   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 query words: compile errors errmsg err msg

Keywords :

Issue type :

Technology :