Hi Paul,
The header file is "visibile" only in the prg or form it's included in. You've to add #INCLUDE at the beginning of all prg's that use those header files.
>I have two or three programs that require me to #INCLUDE a set of constants (ADO in this case). The application I am writing will be a .EXE app, but I am trying to test it from the VFP environment. To help this along I have inherited from one of my colleagues the following program that launches my app (mainMCC.prg) from within VFP :
>
>cd c:\ClinicClient\progs
>compile *.prg
>CD ..
>set default to c:\ClinicClient
>do c:\ClinicClient\progs\mainMCC.prg
>
>When mainMCC.prg runs it opens two programs for access i.e. Set procedure to xyz additive, but when I try to use one of the functions that uses any of the constants defined in the header file the program errors stating that it cannot find the constant value.
>
>I know that programs have to be compiled for the header files to be included, but I assumed thats what 'compile *.prg' would do.
>
>Is there any way I can get these programs working with these header files from the development environment?
>
>Thanks in advance
>
>Pablo
--sb--