Hi there,
I would like to know when you should use the dot (.) operator as opposed to the (->) arrow operator when accessing class members ?
Should you be using the -> operator only when accessing class members for a dynamically created modal form ?
I have a class called 'utils' (within utilities.cpp) and I would like to call the functions within it from mainform.cpp. How should I instantiate it ? Should I include these lines at the top of mainform.cpp:
#include "utilities.h"
utils tools
// I can then use the tools object to call the functions
How and where can I instantiate utils dynamically:
utils tools = new utils() ???
// code here
delete tools
Thanks
bigSteve
I would like to know when you should use the dot (.) operator as opposed to the (->) arrow operator when accessing class members ?
Should you be using the -> operator only when accessing class members for a dynamically created modal form ?
I have a class called 'utils' (within utilities.cpp) and I would like to call the functions within it from mainform.cpp. How should I instantiate it ? Should I include these lines at the top of mainform.cpp:
#include "utilities.h"
utils tools
// I can then use the tools object to call the functions
How and where can I instantiate utils dynamically:
utils tools = new utils() ???
// code here
delete tools
Thanks
bigSteve