Anyone know how to tackle this...
I've got file1.h, file1.cpp, file 2.h, file2.cpp. I want to be ablte to access a variable in file1.cpp from file2.cpp. The Variables are in classes. I've tried creating file3.h&cpp that would carry a class accessable from files 1&2, but when I do this, both files create their own separate instances of the class/variable.
any ideas what to do ?
I've got file1.h, file1.cpp, file 2.h, file2.cpp. I want to be ablte to access a variable in file1.cpp from file2.cpp. The Variables are in classes. I've tried creating file3.h&cpp that would carry a class accessable from files 1&2, but when I do this, both files create their own separate instances of the class/variable.
any ideas what to do ?