Microsoft KB Archive/834542

= BUG: A Windows Driver Development Kit build fails when you use hard-coded font replacement =

Article ID: 834542

Article Last Modified on 2/3/2004

-

APPLIES TO


 * Microsoft Windows XP Driver Development Kit
 * Microsoft Win32 Device Driver Kit for Windows 2000
 * Microsoft Windows Server 2003 Driver Development Kit

-





SYMPTOMS
The Microsoft Windows Driver Development Kit (DDK) build fails and the build output and log will show the following line one or more times:

warning RC4510 : Hardcoded font 'MS Sans Serif' changed to 'MS Shell Dlg'

If the DDK environment has the treat warnings as errors option set (by default, the treat warnings as errors option is set), the build fails.



CAUSE
The DDK build environment uses the /z option in the Microsoft Windows Resource Compiler (Rc.exe) to do hard-coded font replacement. This option is set by the following lines in the Makefile.new file: !IFNDEF RCNOFONTMAP RCOPTIONS=-z &quot;MS Sans Serif,Helv/MS Shell Dlg&quot; $(RCOPTIONS) !ENDIF



RESOLUTION
To resolve this behavior, disable font replacement. To do this, activate the supplied RCNOFONTMAP environment variable. To disable font replacement, add the following line of code to your SOURCES file: RCNOFONTMAP=1 To remove the RCNOFONTMAP environment variable and to enable font replacement, add this line of code to your SOURCES file: !UNDEF RCNOFONTMAP



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article.



MORE INFORMATION
By default, the RCNOFONTMAP environment variable will be set in future versions of the DDK.

Keywords: kbbug KB834542

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.