I'm having a bit of a problem with how to code something.
Here is how it is in my head.
I want a function which is not part of a class to access members of that class, so I want to make the class global.
I have done this with other classes by the normal method of
extern Class instance; In a global.h file and
Class Instance; In a global.cpp file.
The problem arises because the class instance needs to be instantiated after other data is made available globally after another non class function has logged into website, and returned configuration data.
So when my program is launched the global class does not have the data to use.
I'm hoping someone might have some suggestion on how to properly navigate my problem with correct procedure, that is of course if you can understand my ramblings.
Thank you for taking the time to read.
Edited 3 Years Ago by Suzie999