Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFormatted log/message window ... Pin
Maximilien7-Feb-06 2:45
Maximilien7-Feb-06 2:45 
AnswerRe: Formatted log/message window ... Pin
James R. Twine7-Feb-06 3:05
James R. Twine7-Feb-06 3:05 
QuestionLost in Loading toolbars and Images Pin
Aravind Badrinath Krishnan7-Feb-06 2:38
Aravind Badrinath Krishnan7-Feb-06 2:38 
QuestionAny tool for finding Resource leaks? Pin
Raghava Kumar.G7-Feb-06 2:00
Raghava Kumar.G7-Feb-06 2:00 
AnswerRe: Any tool for finding Resource leaks? Pin
Blake Miller7-Feb-06 6:10
Blake Miller7-Feb-06 6:10 
QuestionFunction references Pin
Dimitris Vikeloudas7-Feb-06 1:45
Dimitris Vikeloudas7-Feb-06 1:45 
AnswerRe: Function references Pin
toxcct7-Feb-06 1:49
toxcct7-Feb-06 1:49 
AnswerRe: Function references Pin
Stephen Hewitt7-Feb-06 2:07
Stephen Hewitt7-Feb-06 2:07 
You can't (as you've seen) assign a pointer to a member function to a normal function pointer. A pointer to a member function would look like this:
typedef void (Listener::*)(TBK_BOOL note) NEW_LISTENER_NOTIFICATION_FUNCTION;

To call this pointer you would need more information then with a normal function pointer, you need to supply the this pointer. A call could look like this:
Listener x;<br />
NEW_LISTENER_NOTIFICATION_FUNCTION pFunc = &Listener::notify;<br />
(x.*pFunc)(Some_Value);


The functionality you're after seems more like a delegate then a C++ style member pointer. I believe there is an article on the code project which provides such delegates - but these can only be used from C++.

Steve
GeneralRe: Function references Pin
toxcct7-Feb-06 3:56
toxcct7-Feb-06 3:56 
GeneralRe: Function references Pin
Stephen Hewitt7-Feb-06 11:09
Stephen Hewitt7-Feb-06 11:09 
GeneralRe: Function references Pin
toxcct7-Feb-06 21:27
toxcct7-Feb-06 21:27 
QuestionWhich event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Amarelia7-Feb-06 1:40
Amarelia7-Feb-06 1:40 
AnswerRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
James R. Twine7-Feb-06 2:10
James R. Twine7-Feb-06 2:10 
AnswerRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
David Crow7-Feb-06 2:40
David Crow7-Feb-06 2:40 
GeneralRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Amarelia7-Feb-06 2:51
Amarelia7-Feb-06 2:51 
GeneralRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
David Crow7-Feb-06 3:01
David Crow7-Feb-06 3:01 
GeneralRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Gavin Taylor7-Feb-06 8:20
professionalGavin Taylor7-Feb-06 8:20 
QuestionRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
David Crow7-Feb-06 8:47
David Crow7-Feb-06 8:47 
AnswerRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Gavin Taylor7-Feb-06 18:44
professionalGavin Taylor7-Feb-06 18:44 
AnswerRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Gavin Taylor7-Feb-06 8:16
professionalGavin Taylor7-Feb-06 8:16 
GeneralRe: Which event occurs when user presses Ctrl+Alt+Del and then "Lock Computer"? Pin
Amarelia7-Feb-06 22:30
Amarelia7-Feb-06 22:30 
QuestionOwnerDraw ToolBar in Dialog Box Pin
Muhammad Azam7-Feb-06 1:02
Muhammad Azam7-Feb-06 1:02 
AnswerRe: OwnerDraw ToolBar in Dialog Box Pin
Owner drawn7-Feb-06 1:13
Owner drawn7-Feb-06 1:13 
Questionaccess permision Pin
sundar_mca7-Feb-06 0:58
sundar_mca7-Feb-06 0:58 
QuestionRe: access permision Pin
David Crow7-Feb-06 2:41
David Crow7-Feb-06 2:41 

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.