Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to place .H file?
Message
 
 
À
03/08/2009 22:29:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01415979
Message ID:
01416037
Vues:
49
>
>The #include - or a #define for that matter - doesn't consider functions, etc. It is a "preprocessor directive", meaning that any replacement will be done before the compilation proper.
>
>In the case of a PRG, just put it at the top of the file - before any executable statements. In the case of a form or class, use the command "Form | Include file" or "Class | Include file" to make the #include available for all methods. Since you can only specify ONE file here, the appropriate action seems to be to include a single main #include file, and have this one #include others (foxpro.h for constants like the ones used for MessageBox(), xl97cons.h or something for Excel constants, any other constants you want to define, which may be spread among different files).

Thank you, All, for your helpful input.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform