Raxi -
one of the things I had to do a bit ago was to dynamically generate
the lines for #include and put them some where ...
I had a standard naming convention for my projects -
so in my project manager 'BeforeBuildEvent' I generated the file that
had the #INCLUDES and most of the top level #DEFINES in it , and output it
as [appname].h .
The beforeBuildEvent is cool - you can do what ever you want there.
Unfortunately, as you have found out - you have to have the code you want STATIC for #INCLUDE stuff right prior to compilation .
If you are not compiling full throttle, my apologies for my stuff here.
regards [Bill]
>Hi,
>
>In FoxPro, we can use the following command to include an include file.
>
> #INCLUDE "\dbapps\test\include\test2004.h"
>
>I want to dynamically include an include file, e.g.
>
> lcFilename = "\dbapps\test\include\test2004.h"
> #INCLUDE (lcFilename)
>
>This gives "File does not exist" compile error.
>Even the following does not help.
>
> #INCLUDE Evaluate(lcFilename)
> #INCLUDE &lcFilename
>
>I tried EXTERNAL FILE lcFilename, but it also does not help.
>
>Has anyone tried this? Is it possible what I am trying to do?
>
>Thanks.
>
>- Ravi
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement