Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about FARPROC* Pin
George_George27-Jun-06 2:17
George_George27-Jun-06 2:17 
GeneralRe: about FARPROC* Pin
David Crow27-Jun-06 3:15
David Crow27-Jun-06 3:15 
GeneralRe: about FARPROC* Pin
George_George27-Jun-06 3:43
George_George27-Jun-06 3:43 
GeneralRe: about FARPROC* Pin
David Crow27-Jun-06 3:48
David Crow27-Jun-06 3:48 
GeneralRe: about FARPROC* Pin
George_George27-Jun-06 4:14
George_George27-Jun-06 4:14 
AnswerRe: about FARPROC* Pin
Sarath C21-Jun-06 3:35
Sarath C21-Jun-06 3:35 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:33
George_George21-Jun-06 17:33 
AnswerRe: about FARPROC* Pin
Zac Howland21-Jun-06 3:39
Zac Howland21-Jun-06 3:39 
It is a typedef that, when you boil down all the macros, expands to the following:

typedef int (__stdcall* FARPROC)();

In other words, any function with the following signature could be pointed to by a FARPROC pointer:

int __stdcall f();

To make it portable, you would just remove the __stdcall part of the line. For example, if you want it to work in Linux, define CALLBACK as nothing:

#ifndef CALLBACK<br />
#define CALLBACK<br />
#endif // CALLBACK


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:22
George_George21-Jun-06 17:22 
GeneralRe: about FARPROC* Pin
George_George24-Jun-06 2:12
George_George24-Jun-06 2:12 
GeneralRe: about FARPROC* Pin
Zac Howland25-Jun-06 8:20
Zac Howland25-Jun-06 8:20 
GeneralRe: about FARPROC* Pin
George_George27-Jun-06 2:22
George_George27-Jun-06 2:22 
GeneralRe: about FARPROC* Pin
Zac Howland27-Jun-06 3:17
Zac Howland27-Jun-06 3:17 
GeneralRe: about FARPROC* Pin
George_George27-Jun-06 3:44
George_George27-Jun-06 3:44 
QuestionA question about ClipCursor Pin
zouchao111221-Jun-06 3:02
zouchao111221-Jun-06 3:02 
QuestionRe: A question about ClipCursor Pin
David Crow21-Jun-06 3:27
David Crow21-Jun-06 3:27 
AnswerRe: A question about ClipCursor Pin
zouchao111221-Jun-06 3:51
zouchao111221-Jun-06 3:51 
AnswerRe: A question about ClipCursor Pin
Michael Dunn21-Jun-06 6:37
sitebuilderMichael Dunn21-Jun-06 6:37 
GeneralRe: A question about ClipCursor Pin
zouchao111221-Jun-06 15:31
zouchao111221-Jun-06 15:31 
QuestionAdding header files in a project Pin
vasmvr21-Jun-06 2:59
vasmvr21-Jun-06 2:59 
AnswerRe: Adding header files in a project Pin
David Crow21-Jun-06 3:25
David Crow21-Jun-06 3:25 
GeneralRe: Adding header files in a project Pin
vasmvr21-Jun-06 3:44
vasmvr21-Jun-06 3:44 
GeneralRe: Adding header files in a project Pin
toxcct21-Jun-06 3:49
toxcct21-Jun-06 3:49 
GeneralRe: Adding header files in a project Pin
vasmvr21-Jun-06 3:57
vasmvr21-Jun-06 3:57 
GeneralRe: Adding header files in a project Pin
David Crow21-Jun-06 4:08
David Crow21-Jun-06 4:08 

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.