Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: Segmentation Fault in GTK library files PinmvpRichard MacCutchan2-Dec-12 22:28 
GeneralRe: Segmentation Fault in GTK library files PinmemberSrivathsanRaghavan3-Dec-12 0:25 
GeneralRe: Segmentation Fault in GTK library files PinmvpRichard MacCutchan3-Dec-12 0:55 
Questioncan i use mem_fun like this? PinmemberFalconapollo1-Dec-12 17:37 
AnswerRe: can i use mem_fun like this? PinmvpRichard MacCutchan1-Dec-12 20:56 
AnswerRe: can i use mem_fun like this? PinmemberStephen Hewitt2-Dec-12 4:45 
AnswerRe: can i use mem_fun like this? Pingroupgoumuli2-Dec-12 6:21 
AnswerRe: can i use mem_fun like this? PinmemberStefan_Lang3-Dec-12 2:14 
When you think about it, what you try to achieve isn't logically possible:
 
A member function that is not static implicitely takes a pointer to the instance as it's first (hidden) argument, so you cannot encode that as a simple pointer, as you always have to additionally pass that instance-pointer. Class B does not have a pointer to an instance of class A, so it cannot possibly call a member function, whether by pointer or any other mechanic!
 
When you look at your code, where do you use the object a? Nowhere!
AnswerRe: can i use mem_fun like this? PinmemberStefan_Lang3-Dec-12 3:45 
GeneralRe: can i use mem_fun like this? PinmemberFalconapollo4-Dec-12 14:43 
Questionclient server for running the program Pinmemberdanielsutopo1-Dec-12 15:09 
AnswerRe: client server for running the program PinmemberAlbert Holguin1-Dec-12 17:22 
QuestionLimiting selected checkbox items in a CListCtrl Pinmembersoftwaremonkey1-Dec-12 1:40 
SuggestionRe: Limiting selected checkbox items in a CListCtrl PinmemberDavidCrow1-Dec-12 3:51 
AnswerRe: Limiting selected checkbox items in a CListCtrl PinmemberJochen Arndt1-Dec-12 23:56 
GeneralRe: Limiting selected checkbox items in a CListCtrl Pinmembersoftwaremonkey2-Dec-12 22:45 
QuestionUsing VISUAL C++ 6.0 with OLE PinmemberForNow30-Nov-12 9:06 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pinmemberjschell30-Nov-12 10:46 
SuggestionRe: Using VISUAL C++ 6.0 with OLE PinmemberDavidCrow30-Nov-12 14:24 
GeneralRe: Using VISUAL C++ 6.0 with OLE PinmemberForNow4-Dec-12 13:48 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberStephen Hewitt2-Dec-12 4:54 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberCristian Amarie3-Dec-12 8:52 
QuestionDll injection and hooking Pinmemberminiman0630-Nov-12 7:47 
AnswerRe: Dll injection and hooking Pinmemberminiman061-Dec-12 19:01 
Questionsimple program in linux doesnt work Pinmembera1_shay29-Nov-12 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 21 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid