M
Matthias Matker
Good morning together,
perhaps you can help me:
I am writing a program which includes some classes, e.g. TUsers, TJobFile.
These classes are written on my own.
In the function "main", I created an instance of TUsers and TJobFile.
These classes are only created once.
TUsers* U = new TUsers;
....
By the way: the class above manages the users accounts.
But how can this TUsers "U" be provided in other parts of the program?
For example in a new class called TAccess which needes the data of U?
U must be global or something like this, I may not be created twice.
Thank you
perhaps you can help me:
I am writing a program which includes some classes, e.g. TUsers, TJobFile.
These classes are written on my own.
In the function "main", I created an instance of TUsers and TJobFile.
These classes are only created once.
TUsers* U = new TUsers;
....
By the way: the class above manages the users accounts.
But how can this TUsers "U" be provided in other parts of the program?
For example in a new class called TAccess which needes the data of U?
U must be global or something like this, I may not be created twice.
Thank you