Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Application Instance Pin
john563214-Apr-08 1:49
john563214-Apr-08 1:49 
QuestionRe: Application Instance Pin
Rajkumar R14-Apr-08 1:34
Rajkumar R14-Apr-08 1:34 
GeneralRe: Application Instance Pin
Rajesh R Subramanian14-Apr-08 1:44
professionalRajesh R Subramanian14-Apr-08 1:44 
QuestionRe: Application Instance Pin
David Crow14-Apr-08 3:59
David Crow14-Apr-08 3:59 
GeneralRe: Application Instance Pin
JudyL_MD14-Apr-08 1:47
JudyL_MD14-Apr-08 1:47 
QuestionMember function pointer Pin
johanlich14-Apr-08 0:07
johanlich14-Apr-08 0:07 
GeneralRe: Member function pointer Pin
CPallini14-Apr-08 0:22
mveCPallini14-Apr-08 0:22 
GeneralRe: Member function pointer Pin
Rajkumar R14-Apr-08 0:31
Rajkumar R14-Apr-08 0:31 
johanlich wrote:
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.



johanlich wrote:
// 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
class MyClass{

private:
...
static double Equation(double x);

then use like this,
result = EquationSolver(x1,x2,this->Equation);
GeneralRe: Member function pointer Pin
johanlich14-Apr-08 2:25
johanlich14-Apr-08 2:25 
QuestionHow I know when the "lineMakeCall" function finish Pin
yytg13-Apr-08 23:24
yytg13-Apr-08 23:24 
QuestionWin CE 5.0: Is it posible to send SMSes via the RAS-Phone API? Pin
Klive813-Apr-08 22:20
Klive813-Apr-08 22:20 
General[Message Deleted] Pin
nisha0000013-Apr-08 22:06
nisha0000013-Apr-08 22:06 
AnswerRe: An Usual Question Pin
Rajesh R Subramanian13-Apr-08 22:14
professionalRajesh R Subramanian13-Apr-08 22:14 
GeneralRe: An Usual Question Pin
Mukesh Kumar13-Apr-08 22:26
Mukesh Kumar13-Apr-08 22:26 
GeneralRe: An Usual Question Pin
ThatsAlok19-Jun-09 0:23
ThatsAlok19-Jun-09 0:23 
GeneralRe: An Usual Question Pin
CPallini13-Apr-08 23:17
mveCPallini13-Apr-08 23:17 
GeneralRe: [Message Deleted] Pin
vijay_aroli14-Apr-08 0:13
vijay_aroli14-Apr-08 0:13 
GeneralRe: [Message Deleted] Pin
Rajkumar R14-Apr-08 0:57
Rajkumar R14-Apr-08 0:57 
JokeRe: [Message Deleted] Pin
Rajesh R Subramanian14-Apr-08 1:01
professionalRajesh R Subramanian14-Apr-08 1:01 
GeneralRe: [Message Deleted] Pin
Rajkumar R14-Apr-08 1:05
Rajkumar R14-Apr-08 1:05 
GeneralRe: [Message Deleted] Pin
nisha0000014-Apr-08 1:57
nisha0000014-Apr-08 1:57 
GeneralRe: [Message Deleted] Pin
Hamid_RT14-Apr-08 20:09
Hamid_RT14-Apr-08 20:09 
Question__timeb64 function Pin
rp_suman13-Apr-08 21:59
rp_suman13-Apr-08 21:59 
GeneralRe: __timeb64 function Pin
CPallini13-Apr-08 23:13
mveCPallini13-Apr-08 23:13 
GeneralRe: __timeb64 function Pin
Rajkumar R14-Apr-08 0:49
Rajkumar R14-Apr-08 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.