>
> Project includes *.prg having #include *.h with #DEFINE constants,
> compile into *.fxp  and *.fxp run fine in VFP IDE.
>
> Once built into a .exe, the same *.fxp throw errors for seeing constants
> as unknown variables.
>

The project manager and the COMPILE command use different approaches of
resolving include files, especially when nested include files or different
directories are involved. The safest approach is to put include files into
the same directory as the PRG and ensure that CURDIR() is the project
directory when you rebuild the project and compile PRGs. Also make sure
that SET PATH does not point to any other source code directory outside the
project directory.

To nail down your particular issue go to www.sysinternals.com and download
Process Monitor. Set the filter for path to contain your include file and
rebuild the project in VFP. You should see which file the project manager
picked. Likely one with the same name but without these constants.

Christof


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAL4QJhhOLOoP5TvBXF+3BVP0hCtPMjVqvG5deZQ7=m4ag36...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to