Hello again Graeme,
I will try to explain to you what I'm trying to do here.
static void * update();
Timer* t; //timer will start a new thread with the function I pass to the constructor
void * Power::update()
i = getIpAddress();
//this is what i'm trying to do.
//the Timer class starts its own thread and run update every few seconds
t = new Timer(update);
In order to do this i have to declare update to be static so i can pass its address to Timer, but then i cannot call getIpAddress since update() is a static.
What can i do to fix this problem??