My application has about 30 classes.
I want to add a Global constant used by multiple programs called SWAP_ALLOWED which will be set to 1 or 2 based on queried value from a database.
I'd like this to be a #define variable OR extern.
I do know that #define cant be changed at runtime - OR can it be? If so, how?
But extern "C" int SWAP_ALLOWED is producing a LNK2001 error!
What do I do?