Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to place .H file?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01415979
Message ID:
01416120
Views:
55
Dmitry,

>I understand now. Thank you.

FWIW the #include needs to happen in every source code file that references any of the items #defined in the file. Since it's a compile time feature you can't put it in the main and expect that all of the other PRGs and VCX/SCXes have access to the items in the .h file.

In a visual classlib if you set the Class/Include file item all the methods of the class can see the #defines. If you #include in a method, only that method can see them.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform