Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How determine is it running compiled exe file or not
Message
From
26/10/2005 10:04:59
 
 
To
26/10/2005 09:36:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062144
Message ID:
01062211
Views:
11
ahh... right... It was too early this morning...

the text is substituted at compile time. Evaluation happens at runtime.


>Ok, then why does this work. Compiled in IDE, executed in an exe
>
>A #defined constant is just a text substitution, there is no evaluation at compile time
>
>
>#define RUNNING_IN_IDE !empty(Version(2))
>
>?'ide',  RUNNING_IN_IDE
>? [RUNNING_IN_IDE]
>
>
>>Yes.
>>
>>#DEFINE is a precompiler directive and will only be evaluated at compile time.
>>
>>>Are you sure ?
>>>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform