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:
01416130
Views:
49
David,


>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.

You are of course right. And I knew it but somehow when I put my include in the main application program forgot that the .h file has to be in the IDE path.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform