Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
Dark Byte
Site Admin
Reputation: 383
Joined: 09 May 2003
Posts: 22875
Location: The netherlands

PostPosted: Sun Dec 05, 2010 3:29 pm    Post subject:

Is there a reason why you only want to show memory in chunks of 4 bytes ?

And check if ReadProcessMemory returns true or not.


then there's :int val = (int)(*(DWORD*)buffer + j);
I'm not so good with dword pointers (which is why I always downcast to unsigned chars first) so not sure if buffer +j increases the pointer with j or with j*4 instead
Of course, that is not the problem here because of missing brackets. Here you are typecasting the void buffer pointer to a DWORD buffer pointer, and then is dereferenced into a value, and then the value j is added to it. So if the first byte in the buffer is 10 and j is 2 then val would turn 12

as for stringstream no idea, I never use C++, I'd rather use sprintf but it might work


also, free the buffer at the end of the loop
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Post reviews:   Approve 1
Author Review
NoMercy
Review: Approve
Post reference:
ReviewPosted: Mon Dec 06, 2010 8:38 am

Thanks:)
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites