PRB: Header Files Ignored by Recompile All & Build ProcessID: Q147201 3.00 3.00b WINDOWS kbtool kbprb The information in this article applies to:
SYMPTOMSIssuing a Recompile All from the Project Manager does not force a recompile of program (.prg) files if the program has not been altered. As a result, header (.h) files that are referenced in the program file are ignored by the Recompile All and Build processes. Therefore, if changes are made to a header file that is referenced in a program file, the new changes are not automatically redefined. NOTE: This behavior applies only to header files that are referenced in unchanged program files. In other words, header files referenced in forms and classes are reprocessed by a Recompile All.
CAUSEEach .prg file has an associated .fxp file after the first Build process. If the .fxp and .prg file datetime stamps are the same, then it is assumed that the .prg file hasn't changed, so it's left out of any subsequent recompile processes.
RESOLUTIONThere are two ways to force a recompile of .prg files:
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a simple project, and add a .prg file that contains a #INCLUDE 2. Add the header file to the Text File section of Project Manager.
3. In the header file, insert a #DEFINE command that places a value into 4. Build the project, and run it noting the value displayed from the
5. Rebuild the project with the Recompile All Files check box selected.
6. Rerun the application, and note that the displayed value does not 7. Delete the .fxp file that corresponds to the .prg file.
8. Rebuild the project with the Recompile All Files check box selected. 9. Rerun the application, and note that the displayed value now reflects Additional reference words: 3.00 3.00b VFoxWin re-compile
KBCategory: kbtool kbprb
KBSubcategory: FxtoolProjman
|
Last Reviewed: February 24, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |