PRB: Compiling PSCRIPT.DRV ver. 3.58 with C ver. 7.0 or Later
  
PSS ID Number: Q121664
Article last modified on 01-05-1995
 
3.10
 
WINDOWS
 

---------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Windows Device Development Kit (DDK) for Windows,
   version 3.1
---------------------------------------------------------------------
 
SYMPTOMS
========
 
The PSCRIPT.DRV version 3.58 will not compile correctly with Microsoft C
version 7.0 or later.
 
CAUSE
=====
 
Microsoft C version 7.0 and later perform more stringent type checking, so
you need to modify the PSCRIPT.DRV version 3.58 ENUM.C's ScoreFont()
function.
 
RESOLUTION
==========
 
When compiling the PSCRIPT.DRV version 3.58 with Microsoft C version 7.0 or
later, modify the PSCRIPT.DRV file's ENUM.C file's ScoreFont() function.
 
Here is the original function definition:
 
BYTE  PASCAL  ScoreFont(lpbPublic, lplf, HighScore, lpScoreArray,
lpfScoreFunc)
HPBYTE  lpbPublic;
LPLOGFONT lplf;
BYTE  HighScore;
LPBYTE  lpScoreArray;
BYTE   (PASCAL  *lpfScoreFunc)(LPFONTINFO   lpdf, LPLOGFONT  lplf);
{
.
.
.
)
 
Change the last parameter's definition so that the function looks like
this:
 
BYTE  PASCAL  ScoreFont(lpbPublic, lplf, HighScore, lpScoreArray,
lpfScoreFunc)
HPBYTE  lpbPublic;
LPLOGFONT lplf;
BYTE  HighScore;
LPBYTE  lpScoreArray;
BYTE   (PASCAL  *lpfScoreFunc)(LPFONTINFO, LPLOGFONT);
{
.
.
.
)
 
This change makes it possible for Microsoft C version 7.0 and later to
compile the driver correctly.
 
Additional reference words: 3.10 7.00
KBCategory: kbtool kbprg kbprb
KBSubcategory:
 
=============================================================================
 
Copyright Microsoft Corporation 1995.
