PRB: MAKEFILE for HOOKS Sample Implemented IncorrectlyLast reviewed: July 23, 1997Article ID: Q96726 |
3.10
WINDOWS
kbprg kbprb
The information in this article applies to:
SUMMARYThe makefile for the HOOKS sample in the Microsoft C/C++ version 7.0 Software Development Kit (SDK) contains two errors that prevent the proper reporting of hook messages.
SYMPTOMSAll messages are reported as unknown, and LoadString() failures are reported under the debug kernel of Windows.
CAUSEThe parameters to the resource compiler are incorrect in the makefile, and the .RES file is missing from one set of dependencies.
RESOLUTIONLine 68 of MAKEFILE reads as follows:
$(DLLNAME).dll: $(DLLSRCS:.c=.obj) $(DLLNAME).defChange it to read as follows:
$(DLLNAME).dll: $(DLLSRCS:.c=.obj) $(DLLNAME).def $(DLLNAME).resLine 95 of MAKEFILE reads as follows:
$(RC) -T $(DLLNAME).dll $(DLLNAME).resChange it to read as follows:
$(RC) -T $(DLLNAME).res $(DLLNAME).dll STATUSThis problem has been corrected in Visual C++.
|
Additional reference words: 3.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |