Hi there,
can anyone tell me how I can create a struture that is defined globally for
several modules? I would like to do a configuration-struct that can be
accessed from anywhere in my program. Something like this:
conf.h - contains a struct conf{color blue, red};
main.cpp - contains a function that uses conf.blue
second.cpp - contains a function that uses conf.red
Since I include the conf.h file traditionally I have to load the conf-
struct in every .cpp-file, right? With what trick do I have to load the
conf-struct only once (e.g. in main.cpp) and use it then in all my cpp-
files?
thx for reply
chris
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/