Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:20
George_George21-Jun-06 17:20 
AnswerRe: about FARPROC* Pin
Sarath C21-Jun-06 3:22
Sarath C21-Jun-06 3:22 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:35
George_George21-Jun-06 17:35 
AnswerRe: about FARPROC* Pin
David Crow21-Jun-06 3:29
David Crow21-Jun-06 3:29 
GeneralRe: about FARPROC* Pin
George_George21-Jun-06 17:40
George_George21-Jun-06 17:40 
GeneralRe: about FARPROC* Pin
David Crow22-Jun-06 2:39
David Crow22-Jun-06 2:39 
GeneralRe: about FARPROC* Pin
George_George24-Jun-06 2:09
George_George24-Jun-06 2:09 
GeneralRe: about FARPROC* Pin
David Crow26-Jun-06 2:44
David Crow26-Jun-06 2:44 
George_George wrote:
...what means far and near.


With 16-bit Windows and its segmented memory model, you had 16-bit near pointers and 32-bit far pointers. A far reference refers to a function or data object (or a pointer to a function or data object) that is in a different segment than the current one. Memory was referenced like:

segment:offset

Accessing code or data with a near reference is much quicker than accessing it with a far reference. When you use a far reference, your program must first find the segment and then find the code or data within that segment. When you use a near reference, your program only needs to find the code or data.


"The largest fire starts but with the smallest spark." - David Crow

"Judge not by the eye but by the heart." - Native American Proverb


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 
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 

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.