Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmianframe pointer Pin
Anonymous27-May-05 6:44
Anonymous27-May-05 6:44 
GeneralRe: mianframe pointer Pin
toxcct27-May-05 6:51
toxcct27-May-05 6:51 
GeneralRe: mianframe pointer Pin
David Crow27-May-05 8:05
David Crow27-May-05 8:05 
Generalint (*loop)(); Pin
zuschauer198027-May-05 5:57
zuschauer198027-May-05 5:57 
GeneralRe: int (*loop)(); Pin
Chris Losinger27-May-05 6:28
professionalChris Losinger27-May-05 6:28 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 6:30
toxcct27-May-05 6:30 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 6:38
zuschauer198027-May-05 6:38 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 6:48
toxcct27-May-05 6:48 
ok, let's say that abc is an instance of the abc structure here (even if in theory, the compiler won't allow you to give it the same name as its type - it is not VB ! Big Grin | :-D )

abd->Loop refers to the member Loop we talked about previously. actualy, if we use the operator ->, abc in a pointer to an instance of abc structure, otherwise we would have used the operator .

now, as Loop excpects a pointer to function, we have to pass it the adress of a function that have the same signature (no parameters, return an int).
that's what the function Off() looks to be.

so we use the "address of" operator & to pass the address of the Off() function into abc::Loop...

understood ?! Cool | :cool:


TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 6:57
zuschauer198027-May-05 6:57 
GeneralRe: int (*loop)(); Pin
toxcct27-May-05 7:07
toxcct27-May-05 7:07 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 7:37
zuschauer198027-May-05 7:37 
GeneralRe: int (*loop)(); Pin
Chris Losinger27-May-05 8:44
professionalChris Losinger27-May-05 8:44 
GeneralRe: int (*loop)(); Pin
zuschauer198027-May-05 9:13
zuschauer198027-May-05 9:13 
GeneralSurvey of Technique Questions.. Pin
Brian R27-May-05 5:45
Brian R27-May-05 5:45 
GeneralRe: Survey of Technique Questions.. Pin
toxcct27-May-05 6:35
toxcct27-May-05 6:35 
GeneralRe: Survey of Technique Questions.. Pin
Brian R27-May-05 9:12
Brian R27-May-05 9:12 
GeneralRe: Survey of Technique Questions.. Pin
Ravi Bhavnani27-May-05 13:53
professionalRavi Bhavnani27-May-05 13:53 
GeneralRe: Survey of Technique Questions.. Pin
ThatsAlok27-May-05 18:48
ThatsAlok27-May-05 18:48 
GeneralPrint HTML Directly Pin
Spoodles27-May-05 4:40
Spoodles27-May-05 4:40 
GeneralRe: Print HTML Directly Pin
Ravi Bhavnani27-May-05 4:47
professionalRavi Bhavnani27-May-05 4:47 
GeneralRe: Print HTML Directly Pin
Gary R. Wheeler28-May-05 2:29
Gary R. Wheeler28-May-05 2:29 
QuestionWhere did went ? Pin
Shay Harel27-May-05 4:39
Shay Harel27-May-05 4:39 
AnswerRe: Where did went ? Pin
RChin27-May-05 5:29
RChin27-May-05 5:29 
QuestionHow to detect if DRM is set in WMA Pin
vineas27-May-05 4:15
vineas27-May-05 4:15 
GeneralMigrate from C to MFC in MSVC6 Pin
John Alderman27-May-05 3:39
John Alderman27-May-05 3:39 

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.