result = EquationSolver(x1,x2,(this->*ptr)(x)); // <- Error here
this "(this->*ptr)(x)" actually calling the member function and not just passing the function pointer as you expect.
// function in another solution
double EquationSolver(double x1,double x2, double (*func)(double));
func is a not a type of class member function, you cannot pass non-static class member function pointer to this function.
if you want to call a pointer to member function you need the class object, so you may pass both the object and pointer to member function like,
double EquationSolver(double x1,double x2, MyClass *pObj, double (MyClass::*func)(double));
or if you use a static member function. like
staticdouble Equation(double x);
then use like this,
result = EquationSolver(x1,x2,this->Equation);
Thanks for your input. The static idea worked great, until I needed to call functions from within my Equation-function.
In the end we decided that it became too complex to use member function pointers, we will redesign the math library.
But I appreciate the help.
But I don't get the message "LINECALLSTATE_RINGBACK"
It's possible so the device don't support this message?
Or how do I say to the system to send this message
Or maybe I need to take this message "LINECALLSTATE_PROCEEDING"
How this is important to all? who is us?.... you???
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
What are you expecting from us by asking this here?
I have been reading your posts today here on this forum. What do you think you are? Your replies to few of the questions here today are far from being a solution to what was actually asked. Don't you realize that you are downgrading the quality of the forum with your posts?
Don't ask anything like what you had posted here in this thread here. And moreover, don't post anything as solutions/suggestions when you are not sure about it. Leave that job to the experts here.