If you use h-files in prg-files with relative paths, at works from the project you by all means came across a situation, when at attempts of execution that constants, defined in h-files appear undefined.

I see two solutions of this situation:
1) write in #INCLUDE full path to h-files
2) before each start yours main.prg use SET DEFAULT TO <FullPathToApp> for installation of the current directory
Both of them does not delight, however :-(

Library proj_hook.vcx contains the class projhook, derivative from ProjectHook, 
Permitting automatically to fulfil SET DEFAULT TO <FullPathToApp> in two cases:
- Before attempt to start yours main.prg (event QueryRunFile)
- Before recompilation of the project (event BeforeBuild)

To use:
- Locate files proj_hook.vcx and proj_hook. VCT in the subdirectory Libs/... of yours project
- Having opened the project through the choice menu prompt  Project/Project Info... Call the dialogue of set-up parameters of the project
- On the tab Project check Project Class, in the arisen dialogue choose the class projhook from proj_hook.vcx (from Libs/...)
- Reopen yours project

See also in Project/Project info...[Project] Home [...] (may be important for generation mpr-files)


Best regards.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Michael Drozdov, ICS Soft, Perm, Russia
My Page:  http://vfpdev.narod.ru/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~