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++] Dll help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
homer_simpson
Grandmaster Cheater
Reputation: 0

Joined: 25 Feb 2007
Posts: 596

PostPosted: Thu Jul 10, 2008 12:51 pm    Post subject: Reply with quote

GMZorita wrote:
homer_simpson wrote:
GMZorita wrote:
WOW How surprising, you are using my leaked code, just changed some vars so it doesn't looks exactly the same.
Instead of
Code:
jmp [VPX]

Just use
Code:
jmp VPX


oib111 wrote:
Don't add return 0. And what compiler are you using? I'm assuming VC++ because you're using forms. Well if it doesn't recognize [ then just do "jmp VPX".

No he is using Borland Developer Studio w/ my Leaked Trainer Source,
But he changed some vars so he get those problems.


Well at least im learning... And that gave be back to the VPX label error.

For god sake just use this code.

Code:

static const FARPROC VPX = (FARPROC)((DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "VirtualProtectEx")+5);
DWORD oldp2 = 0;
PDWORD oldprot2 = &oldp2;

_declspec(naked) BOOL WINAPI FixMemEx(HANDLE hProcess, LPVOID lpAddress, SIZE_T dwSize, DWORD flNewProtect, PDWORD lpflOldProtect)
{
   _asm
   {
     mov edi,edi
     push ebp
     mov ebp,esp
     jmp VPX
   }
   return 0;
}
//---------------------------------
void FixMem()
{
   FixMemEx(GetCurrentProcess(), (void*)0x400000, 0x400000, PAGE_EXECUTE_READWRITE, (DWORD*)oldprot2);
}

When you need to fix the memory just use
Code:
FixMem()


And no you are not learning you are mostly leeching.


Well know any bether way? And I plan adding new hacks basing on the ones there so basically im learning. And you dont need to be rude. And do I need stdafx.h? The c++ builder didn't come with it.
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
Goto page Previous  1, 2
Page 2 of 2

 
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