Click here to Skip to main content
15,925,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Well i tried that out your code PJ Arends, but i got some errors in as follow is what is keyed into the program.

#include <stdio.h>
#include<stdlib.h>
void main()
{
DWORD *pointer = 0x00003b9c;
DWORD ValueAtAddress = *pointer;

}

i got the following ERRORS

Compiling...
tervalor.cpp
C:\tervalor.cpp(5) : error C2065: 'DWORD' : undeclared identifier
C:\tervalor.cpp(5) : error C2065: 'pointer' : undeclared identifier
C:\tervalor.cpp(5) : error C2106: '=' : left operand must be l-value
C:\tervalor.cpp(6) : error C2146: syntax error : missing ';' before identifier 'ValueAtAddress'
C:\tervalor.cpp(6) : error C2065: 'ValueAtAddress' : undeclared identifier
C:\tervalor.cpp(6) : error C2100: illegal indirection
Error executing cl.exe.

tervalor.obj - 6 error(s), 0 warning(s)

so i correct the code to the following :

#include <stdio.h>
#include<stdlib.h>
void main()
{
int *pointer = 0x00003b9c;
int ValueAtAddress = *pointer;

}

now i get the error as follow :

Compiling...
tervalor.cpp
C:\tervalor.cpp(5) : error C2440: 'initializing' : cannot convert from 'const int' to 'int *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

tervalor.obj - 1 error(s), 0 warning(s)

well i am new and so think i am not going to get it but i will try. Anyway please help me understand. I like this board pretty much and i will continue to use it until i become professional and be able to help people someday.




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 
GeneralRe: Inheritance &amp; Derived Classes Pin
tnvols12-Mar-05 13:01
tnvols12-Mar-05 13:01 
Questionhow to communicate with a web site Pin
Mohsen Saad12-Mar-05 6:43
Mohsen Saad12-Mar-05 6:43 
AnswerRe: how to communicate with a web site Pin
Ravi Bhavnani12-Mar-05 10:14
professionalRavi Bhavnani12-Mar-05 10:14 
GeneralWin32 API and FindWindow Pin
3Dizard12-Mar-05 5:19
3Dizard12-Mar-05 5:19 
GeneralRe: Win32 API and FindWindow Pin
Mohsen Saad13-Mar-05 6:05
Mohsen Saad13-Mar-05 6:05 

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.