Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMember Function Call by Pointer Pin
Bram van Kampen1-Nov-08 13:31
Bram van Kampen1-Nov-08 13:31 
AnswerRe: Member Function Call by Pointer Pin
Mark Salsbery1-Nov-08 15:46
Mark Salsbery1-Nov-08 15:46 
GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 4:30
Bram van Kampen2-Nov-08 4:30 
AnswerRe: Member Function Call by Pointer Pin
David Crow1-Nov-08 16:13
David Crow1-Nov-08 16:13 
GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 4:38
Bram van Kampen2-Nov-08 4:38 
GeneralRe: Member Function Call by Pointer Pin
Mark Salsbery2-Nov-08 8:03
Mark Salsbery2-Nov-08 8:03 
GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 12:14
Bram van Kampen2-Nov-08 12:14 
GeneralRe: Member Function Call by Pointer Pin
Michael Dunn2-Nov-08 8:17
sitebuilderMichael Dunn2-Nov-08 8:17 
Bram van Kampen wrote:
I tried :(this->*(pE ->pCmdAction))(ResultString) and it worked. Have no Idea why.

When you call through a pointer-to-member, you have to say which object the function should get as its this pointer. If you want the function to get the current this pointer as its own this pointer, you have to say so. That's why the version with this->* works.


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! CP SearchBar v3.0 | C++ Forum FAQ

I work for Keyser Söze

GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 12:15
Bram van Kampen2-Nov-08 12:15 
Questionhow to show/hide windows properly? Pin
includeh101-Nov-08 10:56
includeh101-Nov-08 10:56 
AnswerRe: how to show/hide windows properly? Pin
Mark Salsbery1-Nov-08 13:23
Mark Salsbery1-Nov-08 13:23 
AnswerRe: how to show/hide windows properly? Pin
Bram van Kampen1-Nov-08 13:58
Bram van Kampen1-Nov-08 13:58 
AnswerRe: how to show/hide windows properly? Pin
Alan Balkany3-Nov-08 8:48
Alan Balkany3-Nov-08 8:48 
Questionsockaddr* - Casting from DWORD, get Ip address. Pin
urbanyoung1-Nov-08 2:29
urbanyoung1-Nov-08 2:29 
AnswerRe: sockaddr* - Casting from DWORD, get Ip address. Pin
Mark Salsbery1-Nov-08 9:04
Mark Salsbery1-Nov-08 9:04 
QuestionGetting VPN IP Pin
Green Fuze31-Oct-08 23:14
Green Fuze31-Oct-08 23:14 
QuestionInsert Text at cursor position in a CEdit Control Pin
Dhiraj kumar Saini31-Oct-08 20:44
Dhiraj kumar Saini31-Oct-08 20:44 
AnswerRe: Insert Text at cursor position in a CEdit Control Pin
Cedric Moonen1-Nov-08 0:42
Cedric Moonen1-Nov-08 0:42 
GeneralRe: Insert Text at cursor position in a CEdit Control Pin
Dhiraj kumar Saini1-Nov-08 1:51
Dhiraj kumar Saini1-Nov-08 1:51 
QuestionHow to transfer file via bluetooth from desktop PC to Windows Mobile Device Pin
yudhisthira31-Oct-08 19:18
yudhisthira31-Oct-08 19:18 
QuestionCan you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr31-Oct-08 15:52
Larry Mills Sr31-Oct-08 15:52 
AnswerRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Kenneth Ballard31-Oct-08 18:52
Kenneth Ballard31-Oct-08 18:52 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 3:12
Larry Mills Sr1-Nov-08 3:12 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Mark Salsbery1-Nov-08 10:13
Mark Salsbery1-Nov-08 10:13 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 12:35
Larry Mills Sr1-Nov-08 12:35 

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.