Information générale
Titre:
Where to keep names of Objects
Morning
I have various programs in my application that will sometimes need to identify the area that the user is currently in by referencing the Class Object Name (Ie the currently visible object will be the area that the user is in).
However, I am a bit hesitant to go ahead and hard-code these names in to my programs in case they ever change.
I was thinking of keeping the Object names I need in a compile-time constant in a H file.
All I want to know is, is that the best way to handle this?
Thanks
Kev
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