>I want to include header file in a program but condition is this that i can't modify that program. I can write another program but i know that the #define statement only substitute the current prg constant. can anyone help me so that i can use a include file of one prg in the another prg without including in the second one. thanks in advance.
>
>Deepak.
Not sure I really understand what you are asking, but in your header file, you can use as many #Include statements as you want. If you are asking how to use an additional header file in an existing PRG without adding an additional #INCLUDE to that PRG, then add the #INCLUDE to the constants file that is called by the existing PRG. For example, in my DEFAULTS.H header file, I have the following:
#INCLUDE D:\VisualStudio\Vfp98\FoxPro.h
#INCLUDE D:\Apps\Common\Constants\Word2000.h
#DEFINE ...
In my PRG file, I only have 1 #Include statement:
#INCLUDE DEFAULTS.H
Mark McCasland
Midlothian, TX USA