Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help , why WSAGetLastError( ) return 2? Pin
danscort yu11-Jun-07 1:02
danscort yu11-Jun-07 1:02 
QuestionRe: Help , why WSAGetLastError( ) return 2? Pin
Mark Salsbery11-Jun-07 6:25
Mark Salsbery11-Jun-07 6:25 
QuestionPassing a class function pointer as an argument Pin
Cyrilix9-Jun-07 14:30
Cyrilix9-Jun-07 14:30 
AnswerRe: Passing a class function pointer as an argument Pin
Nemanja Trifunovic9-Jun-07 14:48
Nemanja Trifunovic9-Jun-07 14:48 
GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 14:52
Cyrilix9-Jun-07 14:52 
AnswerRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:01
Mark Salsbery9-Jun-07 15:01 
GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 15:17
Cyrilix9-Jun-07 15:17 
GeneralRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:28
Mark Salsbery9-Jun-07 15:28 
Yeah, the typedef just makes an alias for the function pointer type so you can use one word
instead of an entire function prototype. That's why you could declare your PassPtr() function
either of the ways I showed.

I've been trying to think of an example where this is useful but I can't! LOL Google shows some
ideas but I can't imagine a real-world example of why I'd need to use member pointers unless
I needed to mess with polymorphism at runtime.

Regardless, it's probably useless for your needs - I just wanted to point out that it could be
done Smile | :) Like you mentioned, needing an entire object just to make the call through a pointer
makes the whole thing kinda overkill.

If you're interested, I googled "member function pointers" for reasons why I might want to use
them. Now my head hurts - C++ overload Wink | ;)

Cheers!
Mark




"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Passing a class function pointer as an argument Pin
Cyrilix9-Jun-07 15:40
Cyrilix9-Jun-07 15:40 
GeneralRe: Passing a class function pointer as an argument Pin
Mark Salsbery9-Jun-07 15:59
Mark Salsbery9-Jun-07 15:59 
QuestionSet registry key permissions Pin
KellyR9-Jun-07 10:42
KellyR9-Jun-07 10:42 
QuestionRe: Set registry key permissions Pin
KellyR9-Jun-07 12:07
KellyR9-Jun-07 12:07 
AnswerRe: Set registry key permissions Pin
KellyR10-Jun-07 6:51
KellyR10-Jun-07 6:51 
QuestionHelp Pin
dellthinker9-Jun-07 10:32
dellthinker9-Jun-07 10:32 
AnswerRe: Help Pin
KellyR9-Jun-07 11:03
KellyR9-Jun-07 11:03 
AnswerRe: Help Pin
Christian Graus9-Jun-07 14:10
protectorChristian Graus9-Jun-07 14:10 
QuestionForce Closing of a Module Pin
Bram van Kampen9-Jun-07 9:37
Bram van Kampen9-Jun-07 9:37 
AnswerRe: Force Closing of a Module Pin
Perspx9-Jun-07 13:26
Perspx9-Jun-07 13:26 
AnswerRe: Force Closing of a Module Pin
Mark Salsbery9-Jun-07 14:21
Mark Salsbery9-Jun-07 14:21 
GeneralRe: Force Closing of a Module Pin
Bram van Kampen10-Jun-07 3:17
Bram van Kampen10-Jun-07 3:17 
QuestionAfxGetApp()->LoadStandardIcon but no Icon!! Pin
mercenary019-Jun-07 8:12
mercenary019-Jun-07 8:12 
AnswerRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
Mark Salsbery9-Jun-07 8:28
Mark Salsbery9-Jun-07 8:28 
GeneralRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
mercenary019-Jun-07 16:49
mercenary019-Jun-07 16:49 
GeneralRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
Mark Salsbery9-Jun-07 18:35
Mark Salsbery9-Jun-07 18:35 
Questionresetting pagefaults Pin
JimmyRopes9-Jun-07 7:42
professionalJimmyRopes9-Jun-07 7:42 

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.