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 


Setting a breakpoint in C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
MooMooCow
Newbie cheater
Reputation: 0

Joined: 07 Jun 2007
Posts: 21

PostPosted: Thu Jun 07, 2007 3:07 am    Post subject: Setting a breakpoint in C++ Reply with quote

I am programming in C++, and I was wondering how someone would set a breakpoint on a memory address to get the addresses that messes with it. I want to be able to set a breakpoint on a certain address and have it return all of the disassembly of it. I'm not sure if I am explaining this right. Mainly, I just want it to give me the results that T-Search would if you were to set a breakpoint in it.
Back to top
View user's profile Send private message
TheSorc3r3r
I post too much
Reputation: 0

Joined: 06 Sep 2006
Posts: 2404

PostPosted: Thu Jun 07, 2007 4:54 am    Post subject: Reply with quote

Are you using an IDE? If so, which? MSVC++ uses F9 to toggle breakpoints, but generally the Breakpoint feature is under the Debug menu.
_________________


Don't laugh, I'm still learning photoshop!
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Thu Jun 07, 2007 5:28 am    Post subject: Reply with quote

i think he meant to put a breakpoint to another process..
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jun 07, 2007 7:28 am    Post subject: Reply with quote

1. VirtualProtect the address with PAGE_NOACCESS
2. Catch the exception that is generated when it is accessed
Back to top
View user's profile Send private message
MooMooCow
Newbie cheater
Reputation: 0

Joined: 07 Jun 2007
Posts: 21

PostPosted: Thu Jun 07, 2007 11:41 am    Post subject: breakpoints Reply with quote

Thanks for your replies. Appalsap, that sounds like it would work, but how would I go about getting the address in the exception? I haven't messed with exceptions much. I always just put the following and never mess with anything else.

try
{
}
catch(...)
{
}

I'll look up exceptions in C++ in the meantime to see if I can figure it out.

EDIT: I have yet another question... Where do I put the try/catch statement?
Back to top
View user's profile Send private message
g3nuin3
Cheater
Reputation: 0

Joined: 08 Jan 2007
Posts: 28

PostPosted: Wed Jun 13, 2007 11:04 pm    Post subject: Reply with quote

This requires for you to code a small debugging engine...Using Debugging APi's you have to set breakpoints and also catch it.

refer to this article: http://www.woodmann.com/fravia/iceman1.htm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites