Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Build Win32 executable

Status
Not open for further replies.

mkendi

Programmer
Oct 21, 2000
82
TR
In all my program files (*.prg) I include in the first line a header file e.g. #include "mkb.h"

In this header file I DEFINE program-version, database-version etc. etc. This definitions are important for the course of the program. If e.g. the field db_version in the table default.dbf is older then DATABASE_VERSION, wich is defined in mkb.h, I jump into a function, where I add/remove/change tables/fields.

Now, when I change the define PROGRAM_VERSION from 2.018 to 2.019 in mkb.h and than build the executable with the option "recompile all files" on, no of the defines in *.prg changes.
I have to enter all important program files and recompile with Alt-PM.
Where is my mistake?

(I am using Vfp8)

Thanks in advance
 
You could always use the command window version:
COMPILE *
Just make sure your default directory is the one containing the .prg files.
You may also want to make sure SET DEVELOPEMENT is set to ON.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
I can't offhand say what's going wrong: "Recompile All Files" should do just that.

But, I've had this command in my release procedure for a similar reason:

COMPILE *.PRG
COMPILE FORM *.FRX
COMPILE CLASSLIB *.VCX

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Thanks!
With compile progs\*.prg the changed values in the header file are correctly taken over from all source-files.
But in this case I have to ask: "What is the meaning of compile all files option in the build process?"


 
But in this case I have to ask: "What is the meaning of compile all files option in the build process?"

If you don't select this option, VFP will only recompile the files that have changed.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Mike
The opposite of your statement would be:
"if you select this option, VFP will recompile all files"
But this is not correct (see above).
 

The recompile all files that are marked as included in your project. Normally header files a not included.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 

Probably recognized as the main program. Have you try to included in a form (any form that would use those values) to see if it makes a difference.
When you are in design mode go to-> Form -> Include file.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I checked it, strange:

I build a simple form and included the header file with Forms / Include File .. .
The recompile all files option has no affect. All changes in the header file were always dedected correctly.

Then I put a simple function in a prg-file, where I show the program version in a messagebox. Now again the recompile all files option has no affect. No of the changes in the header file could be dedected. Only a COMPILE *.prg in the command window did it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top