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 


C++ question!

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

Joined: 26 Feb 2008
Posts: 44

PostPosted: Fri Feb 29, 2008 4:47 pm    Post subject: C++ question! Reply with quote

I am using visual c++ 2008.

How do I tick zeroflag in C++? I'm busy on a DLL, and I just can't get it to work. I'm not asking you to spoonfeed me, I'm just asking for help.

Help would be GREATLY appreciated, thanks in advance.

_________________
Stop leeching, start learning.

Current Projects :
MrNeef's DLL injector + MrNeef's basic DLL [ 75% ]
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Fri Feb 29, 2008 5:08 pm    Post subject: Reply with quote

Edit: rofl dont listen to me, i dunno wut im talkin bout Smile xD
_________________


Last edited by lurc on Fri Feb 29, 2008 8:39 pm; edited 2 times in total
Back to top
View user's profile Send private message
MrNeef
Cheater
Reputation: 0

Joined: 26 Feb 2008
Posts: 44

PostPosted: Fri Feb 29, 2008 5:10 pm    Post subject: Reply with quote

Thanks lurc! +REP
_________________
Stop leeching, start learning.

Current Projects :
MrNeef's DLL injector + MrNeef's basic DLL [ 75% ]
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Feb 29, 2008 8:31 pm    Post subject: Reply with quote

Don't listen to lurc, that isn't even close.

Hook, then do the following:

Code:
Clear ZF:
pushf
and byte [esp+3], 0xDF
popf

Set ZF:
pushf
or byte [esp+3],  0x20
popf
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Fri Feb 29, 2008 8:39 pm    Post subject: Reply with quote

Rofl, My Bad xD i said "i think..."

didnt no for sure. All i knew was the byte value was 6 so i took a nice wild guess xD

_________________
Back to top
View user's profile Send private message
MrNeef
Cheater
Reputation: 0

Joined: 26 Feb 2008
Posts: 44

PostPosted: Sat Mar 01, 2008 7:32 am    Post subject: Reply with quote

Yeah, it didn't work. MS just closed, hehe. Thanks for the effort though!
Flyte, thanks, I'll try it out right now!

EDIT //
Flyte, could you explain that code please? I'd like to learn from it Very Happy

EDIT2 //
How do I set the address?

_________________
Stop leeching, start learning.

Current Projects :
MrNeef's DLL injector + MrNeef's basic DLL [ 75% ]
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Mar 01, 2008 9:46 am    Post subject: Reply with quote

#define JMP(frm, to) (int)(((int)to - (int)frm) - 5);

DWORD HookAddress = //The hook addy here
DWORD YourAddress = //The Addy/asm that jumps to the addy.

*(DWORD *)HookAddress = JMP( HookAddress, YourAddress );

i dont remember the real Hook Address... ill have to find the AOB.

_________________
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