Click here to Skip to main content
16,018,458 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: OK buddy! Pin
toxcct10-Dec-07 2:44
toxcct10-Dec-07 2:44 
GeneralRe: OK buddy! Pin
George_George10-Dec-07 3:16
George_George10-Dec-07 3:16 
GeneralNope Pin
CPallini10-Dec-07 3:34
mveCPallini10-Dec-07 3:34 
GeneralRe: Nope Pin
George_George10-Dec-07 15:30
George_George10-Dec-07 15:30 
GeneralRe: Function pointer Pin
George_George10-Dec-07 3:15
George_George10-Dec-07 3:15 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 2:11
toxcct10-Dec-07 2:11 
GeneralRe: Function pointer Pin
George_George10-Dec-07 2:28
George_George10-Dec-07 2:28 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 2:38
toxcct10-Dec-07 2:38 
George_George wrote:
1. I do not quite catch your points, why a class must implement a function without any parameters?


because it does something which doesn't need any further inputs from the caller.
here, the function is used as a functor, that means it is called internally from the STL algorithm you're using, to do a certain action on your class, but the algorithm wouldn't know what to pass it if it had to anyway.


George_George wrote:
2. I want to confirm that, the declaration of variable pmf could be pointed to any member functions of class (type) T which returns type R and no input parameters?


exactly. so, I think the compiler would probably complain (to be verified though) if it canoot determine which function to call if it find more than one.


GeneralRe: Function pointer Pin
George_George10-Dec-07 16:06
George_George10-Dec-07 16:06 
GeneralRe: Function pointer Pin
toxcct10-Dec-07 21:28
toxcct10-Dec-07 21:28 
General[Message Deleted] Pin
George_George10-Dec-07 2:34
George_George10-Dec-07 2:34 
General[Message Deleted] Pin
toxcct10-Dec-07 2:45
toxcct10-Dec-07 2:45 
GeneralRe: Function pointer Pin
George_George10-Dec-07 3:19
George_George10-Dec-07 3:19 
QuestionRe: [Message Deleted] Pin
Hamid Taebi10-Dec-07 6:21
professionalHamid Taebi10-Dec-07 6:21 
GeneralRe: [Message Deleted] Pin
toxcct10-Dec-07 8:12
toxcct10-Dec-07 8:12 
GeneralRe: [Message Deleted] Pin
Hamid Taebi10-Dec-07 19:46
professionalHamid Taebi10-Dec-07 19:46 
GeneralRe: [Message Deleted] Pin
toxcct10-Dec-07 21:26
toxcct10-Dec-07 21:26 
GeneralCapture Minimize and Restore events in wondows. Pin
Y K Kishore Kumar10-Dec-07 0:08
Y K Kishore Kumar10-Dec-07 0:08 
GeneralRe: Capture Minimize and Restore events in wondows. Pin
Hamid Taebi10-Dec-07 1:17
professionalHamid Taebi10-Dec-07 1:17 
GeneralRe: Capture Minimize and Restore events in wondows. Pin
Nelek10-Dec-07 1:19
protectorNelek10-Dec-07 1:19 
GeneralRe: Capture Minimize and Restore events in wondows. Pin
only coder10-Dec-07 1:36
only coder10-Dec-07 1:36 
GeneralDisplay Thumbnails from thumbs.db file Pin
Member 455415810-Dec-07 0:07
Member 455415810-Dec-07 0:07 
GeneralRe: Display Thumbnails from thumbs.db file Pin
Hamid Taebi10-Dec-07 1:30
professionalHamid Taebi10-Dec-07 1:30 
Generalerror Idispatch error #291 Pin
tasumisra10-Dec-07 0:06
tasumisra10-Dec-07 0:06 
Generalerror C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA' Pin
ritz12349-Dec-07 23:27
ritz12349-Dec-07 23:27 

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.