Click here to Skip to main content
15,918,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help on OnInitialUpdate Pin
PJ Arends12-Mar-05 17:30
professionalPJ Arends12-Mar-05 17:30 
GeneralRe: help on OnInitialUpdate Pin
the pink jedi12-Mar-05 17:48
the pink jedi12-Mar-05 17:48 
GeneralRe: help on OnInitialUpdate Pin
Steve Mayfield12-Mar-05 18:37
Steve Mayfield12-Mar-05 18:37 
GeneralRe: help on OnInitialUpdate Pin
the pink jedi12-Mar-05 19:27
the pink jedi12-Mar-05 19:27 
GeneralRe: help on OnInitialUpdate Pin
Ravi Bhavnani12-Mar-05 19:44
professionalRavi Bhavnani12-Mar-05 19:44 
Generalreading a memory address using c++ Pin
tervalor12-Mar-05 15:57
tervalor12-Mar-05 15:57 
GeneralRe: reading a memory address using c++ Pin
Anonymous12-Mar-05 18:17
Anonymous12-Mar-05 18:17 
GeneralRe: reading a memory address using c++ Pin
humps12-Mar-05 20:03
humps12-Mar-05 20:03 
You can use the * operator. But you have to tell C++ what sort of data to expect at the address, so it knows what type of variable to create, e.g.:

int memoryAddressValue = *((int *)memoryAddress);

if you know an int is at the address (which occupies 4 bytes, so this call reads the address and the next 3 addresses). Memory addresses are just bytes or data, so their meaning is open to interpretation ! This call casts the address to a pointer to an integer - (int*)memoryAddress - and then reads the value from memory - * operator.

Note: if the process doesn't have access to the address (which usually means the address is not the address of one of its variables on the stack, or is not part of the heap space defined by calling new/malloc etc) then expect an access violation exception.



Thanks,

Neil Humphreys.
GeneralRe: reading a memory address using c++ Pin
tervalor12-Mar-05 21:38
tervalor12-Mar-05 21:38 
GeneralRe: reading a memory address using c++ Pin
Gary R. Wheeler13-Mar-05 3:50
Gary R. Wheeler13-Mar-05 3:50 
QuestionHow to monitor the value at a specific address say 0x003b9c Pin
tervalor12-Mar-05 15:49
tervalor12-Mar-05 15:49 
AnswerRe: How to monitor the value at a specific address say 0x003b9c Pin
PJ Arends12-Mar-05 17:36
professionalPJ Arends12-Mar-05 17:36 
GeneralRe: How to monitor the value at a specific address say 0x003b9c Pin
tervalor12-Mar-05 19:45
tervalor12-Mar-05 19:45 
GeneralRe: How to monitor the value at a specific address say 0x003b9c Pin
humps12-Mar-05 20:11
humps12-Mar-05 20:11 
Questionhow to save complete web page on hard disk? Pin
arooj12-Mar-05 15:41
arooj12-Mar-05 15:41 
AnswerRe: how to save complete web page on hard disk? Pin
Mohsen Saad13-Mar-05 6:00
Mohsen Saad13-Mar-05 6:00 
GeneralMFC Grid Control Exception in Release Build Only! Pin
jarbus12-Mar-05 10:17
jarbus12-Mar-05 10:17 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends12-Mar-05 17:41
professionalPJ Arends12-Mar-05 17:41 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
jarbus13-Mar-05 9:02
jarbus13-Mar-05 9:02 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends13-Mar-05 10:58
professionalPJ Arends13-Mar-05 10:58 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends13-Mar-05 11:10
professionalPJ Arends13-Mar-05 11:10 
GeneralC++ Dll Pin
Daniel Kanev12-Mar-05 9:53
Daniel Kanev12-Mar-05 9:53 
GeneralRe: C++ Dll Pin
YaronNir12-Mar-05 11:25
YaronNir12-Mar-05 11:25 
GeneralRe: C++ Dll Pin
John R. Shaw12-Mar-05 13:14
John R. Shaw12-Mar-05 13:14 
GeneralInheritance & Derived Classes Pin
tnvols12-Mar-05 9:48
tnvols12-Mar-05 9:48 

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.