Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include files hierarchy
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00249525
Message ID:
00249695
Views:
24
>Do you mean adding new code to the subclass that needs a new declaration or adding new code that references a declaration that the super class already contains?

Mark,

Perhaps this will help you understand the situation.

.h files contain compiler directives. The directives in them affect the way code is compiled. #DEFINE is a search and replace command to the compiler that says whereever you find this string, replace it with this other one before you compile the code.

When you add a header file to a class definition, the class DOES NOT contain the definitions. The compiler uses the header file when it compiles that class. If you then subclass that one and again use a constant from the header file, you must include the header file in the new class as well. This is because the two classes are compiled separately and both need the header file to control the compiling process.
Previous
Reply
Map
View

Click here to load this message in the networking platform