Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>Yes, it offers the same design. But I was unable to make it work. I actually tried to use a constant from foxpro.h (AFIELDS_WIDTH) and the program complained, that there is no such variable. I had to put #include foxpro.h in the beginning of the program in order to make it work. I forgot, how can we have "GLOBAL" constants?
I recommend *not* using foxpro.h as an include file. It's huge and has very poor and inconsistent naming conventions. It thus becomes very easy to have a #DEFINE wreak havoc with programs where you might have variables or fields with the same name. Rather, when you find specific constants that you need, migrate these to your own (short, carefully-constructed) include file.
The only downside is you may have to verify the constants haven't changed when a 64-bit FoxPro comes out (as if...), but I doubt there's much potential for trouble there.
-- Randy
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement