BUG: A Windows Driver Development Kit build fails when you use hard-coded font replacement (834542)
The information in this article applies to:
- Microsoft Windows XP Driver Development Kit (DDK)
- Microsoft Windows 2000 Driver Development Kit (DDK)
- Microsoft Windows Server 2003 Driver Development Kit (DDK)
SYMPTOMSThe 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.CAUSEThe 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 "MS Sans Serif,Helv/MS Shell Dlg" $(RCOPTIONS)
!ENDIF
RESOLUTIONTo 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 STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section of this article.MORE INFORMATIONBy default, the RCNOFONTMAP environment variable will be set in future versions of the DDK.
Modification Type: | Minor | Last Reviewed: | 2/3/2004 |
---|
Keywords: | kbbug KB834542 kbAudDeveloper |
---|
|