Click here to Skip to main content
15,867,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionType checking Pin
Rahul Thengadi4-Jun-16 10:26
Rahul Thengadi4-Jun-16 10:26 
AnswerRe: Type checking Pin
leon de boer4-Jun-16 21:03
leon de boer4-Jun-16 21:03 
Questionwhat is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258022-Jun-16 22:23
Member 125258022-Jun-16 22:23 
AnswerRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan2-Jun-16 23:40
mveRichard MacCutchan2-Jun-16 23:40 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258023-Jun-16 1:59
Member 125258023-Jun-16 1:59 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Jochen Arndt3-Jun-16 2:38
professionalJochen Arndt3-Jun-16 2:38 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan3-Jun-16 2:42
mveRichard MacCutchan3-Jun-16 2:42 
QuestionSyntax of How to Call a Member Function via a Function Pointer Pin
Bram van Kampen1-Jun-16 14:37
Bram van Kampen1-Jun-16 14:37 
Hi,

I have a Base Class Header File as follows,
C++
// Header File:

class MyClass,// Advance Declaration
typedef void (MyClass::*PFN_DO_SOMETHING)(void* pData);

class MyClass{

// Lots of things

PFN_DO_SOMETHING m_pfnDoSomething;
void Act(void* pData);
}

//Implementation File:
void MyClass::Act(void* pData){
m_pfnDoSomething(pData);
}
Needless to say, 'pfnDoSomething' has been initialised elsewere. I boiled the question down to the essentials, the correct CPP syntax for calling a member function from a pointer to it.

I get a Compiler error stating that 'pfnDoSomething' does not resolve to a function call.
What is the correct syntax for calling this function.

regards Smile | :)
Bram van Kampen


modified 2-Jun-16 4:00am.

AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Jochen Arndt1-Jun-16 21:09
professionalJochen Arndt1-Jun-16 21:09 
SuggestionRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Richard MacCutchan1-Jun-16 21:09
mveRichard MacCutchan1-Jun-16 21:09 
AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
leon de boer4-Jun-16 5:00
leon de boer4-Jun-16 5:00 
Questionfor project Pin
Member 1255885431-May-16 23:22
Member 1255885431-May-16 23:22 
AnswerRe: for project Pin
CPallini31-May-16 23:33
mveCPallini31-May-16 23:33 
AnswerRe: for project Pin
Richard MacCutchan31-May-16 23:39
mveRichard MacCutchan31-May-16 23:39 
QuestionRe: for project Pin
David Crow1-Jun-16 2:50
David Crow1-Jun-16 2:50 
AnswerRe: for project Pin
Bram van Kampen1-Jun-16 15:26
Bram van Kampen1-Jun-16 15:26 
QuestionHow to determine file offset of each section using RVA in pe file ? Pin
Member 1254265131-May-16 1:26
Member 1254265131-May-16 1:26 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Richard MacCutchan31-May-16 2:00
mveRichard MacCutchan31-May-16 2:00 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Bram van Kampen1-Jun-16 15:11
Bram van Kampen1-Jun-16 15:11 
QuestionCopy certain member variable data of a structure Pin
manoharbalu30-May-16 23:45
manoharbalu30-May-16 23:45 
AnswerRe: Copy certain member variable data of a structure Pin
Richard MacCutchan31-May-16 0:31
mveRichard MacCutchan31-May-16 0:31 
GeneralRe: Copy certain member variable data of a structure Pin
manoharbalu31-May-16 0:40
manoharbalu31-May-16 0:40 
GeneralRe: Copy certain member variable data of a structure Pin
Richard MacCutchan31-May-16 0:47
mveRichard MacCutchan31-May-16 0:47 
AnswerRe: Copy certain member variable data of a structure Pin
Jochen Arndt31-May-16 1:43
professionalJochen Arndt31-May-16 1:43 
AnswerRe: Copy certain member variable data of a structure Pin
leon de boer31-May-16 3:59
leon de boer31-May-16 3:59 

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.