Click here to Skip to main content
15,915,975 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Page boundary Pin
Stephen Hewitt12-Jun-07 18:13
Stephen Hewitt12-Jun-07 18:13 
QuestionInstruction Pointer Pin
tom groezer12-Jun-07 17:23
tom groezer12-Jun-07 17:23 
AnswerRe: Instruction Pointer Pin
Sarath C12-Jun-07 17:39
Sarath C12-Jun-07 17:39 
QuestionRe: Instruction Pointer Pin
tom groezer12-Jun-07 18:02
tom groezer12-Jun-07 18:02 
AnswerRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 18:01
Stephen Hewitt12-Jun-07 18:01 
GeneralRe: Instruction Pointer Pin
tom groezer12-Jun-07 18:08
tom groezer12-Jun-07 18:08 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 18:10
Stephen Hewitt12-Jun-07 18:10 
GeneralRe: Instruction Pointer Pin
Michael Dunn12-Jun-07 18:12
sitebuilderMichael Dunn12-Jun-07 18:12 
A function pointer is not a pointer to an object, it's a pointer to the start of the function in memory. So calling through a function pointer sets EIP to the pointer's value. You can't actually dereference a function pointer, since functions aren't objects in C/C++, but the syntax rules allow you to apply * to a function pointer as if it were dereference-able. IOW, both of these are equivalent:
void (*pFunc)() = NULL;
(*pFunc)();
pFunc();


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

Dunder-Mifflin, this is Pam.

GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 20:54
Stephen Hewitt12-Jun-07 20:54 
AnswerRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 21:43
Rajkumar R12-Jun-07 21:43 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:11
Stephen Hewitt12-Jun-07 22:11 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:21
Rajkumar R12-Jun-07 22:21 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:24
Stephen Hewitt12-Jun-07 22:24 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:33
Rajkumar R12-Jun-07 22:33 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:40
Stephen Hewitt12-Jun-07 22:40 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:50
Rajkumar R12-Jun-07 22:50 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt13-Jun-07 13:19
Stephen Hewitt13-Jun-07 13:19 
AnswerRe: Instruction Pointer Pin
Rajkumar R13-Jun-07 18:51
Rajkumar R13-Jun-07 18:51 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt13-Jun-07 18:54
Stephen Hewitt13-Jun-07 18:54 
AnswerRe: Instruction Pointer Pin
Rajkumar R13-Jun-07 19:50
Rajkumar R13-Jun-07 19:50 
QuestionDebugging Pin
tom groezer12-Jun-07 16:58
tom groezer12-Jun-07 16:58 
AnswerRe: Debugging Pin
Xing Chen12-Jun-07 17:28
Xing Chen12-Jun-07 17:28 
GeneralRe: Debugging Pin
tom groezer12-Jun-07 17:33
tom groezer12-Jun-07 17:33 
GeneralRe: Debugging Pin
Xing Chen12-Jun-07 17:46
Xing Chen12-Jun-07 17:46 
AnswerRe: Debugging Pin
Sarath C12-Jun-07 17:36
Sarath C12-Jun-07 17:36 

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.