Click to See Complete Forum and Search --> : .h file


Toms
05-24-2001, 11:07 PM
i know that i can define all my #define constant in a file call .h and
#include it , so , the whole program can use it.
but it seems not work.
my program will call a .prg and in the prg there,
i first set procedure to another .prg , in this prg
i write #INCLUDE ".H"
later , i use createobject to call the main application.
when createobject , it will call another object (environment custom)
which i put all the setting there, finally , the main form show.
but when i want to use the #DEFINE constant in the .h ,
it shows that variable not found.
am i need to put the set procedure to the environment object or
how can i make the .h work

Thanks a lot
Toms

Tamar E. Granor
05-25-2001, 07:31 AM
On 24 May 2001 20:07:28 -0700, "Toms" <Toms@Magic.com.hk> wrote:

>
>i know that i can define all my #define constant in a file call .h and
>#include it , so , the whole program can use it.
>but it seems not work.

Constant definitions aren't remembered from one program to another.
You need to issue #INCLUDE in each program. For forms and classes, use
the Include file item on the menu to specify the constant file.

Tamar