Hello!
I was just wondering something that's kinda bugging me....
You see, i want certain variables to be able to be accessed from numerous .cpp and .h files... (all in the usual Class XXX.cpp, XXX.h pairings)
At the momemt, the easiest and cleanest thing so far i've found is to make a GLOBAL class, fill it with all the variables that i want, and then have up the top of the files:
or something similar...is there an eaier way?Code:#include "glob.h" extern GLOB prjGlobals;





Reply With Quote