Thumbs upUse C++ code and make hacks

Posts 115 of 100 · Page 1 of 7
Use C++ code and make hacks
Hey guys.
I saw much much posts here about making hacks. So here is a tutorial how to make them. Please press the thanksbutton

Downloads
1. Microsoft Visual C++ 2010/2008. Link: Visual C++ 2010 Express - Download - CHIP Online
2. Microsoft DirectX SDK. Link: Download Details - Microsoft Download Center - DirectX SDK - (June 2010)
3. Some source code. Link: http://www.mpgh.net/forum/207-combat...menu-base.html

How To Use the Files
After you downloaded the files, open them. So install Visual C++ and DIrectX SDK and extract the menubase to your desktop. After you installed all, open up MSV C++. Than click "File" -> "New" -> "Project" and it should popup a new window. Screenshot:


Now a new window popup. Just click "Next". Another window will popup. Screenshot:


Now we can add the code. If you want to open the menu base just open the project. But here we must add own code. So i will give you for example a hotkey code. Rightclick source files -> add -> new element and add a new .cpp file. Now you can add the code:

[html]#include <windows.h>


void testTH()
{
MessageBoxA(NULL, "This is my MsgBox WOO ", "My MsgBox", MB_OK);
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)testTH, 0, 0, 0);

}

return TRUE;
}[/html]

Now choose at top instead of "Debug" "Release" and press the green button. Now it compile the code. After compiling it had created the Dll-File which you easilly can inject with an injector. Look on mpgh for Injectors. The Dll-File's path should be: C:\Users\[Username]\Documents\Visual Studio 2010\Projects\[Projectname]\Release\[Projectname].dll

I hope I could help you. Please press the "thanksbutton" on the buttom on the right if it worked for you
Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
	}

	return TRUE;
}
If you use this code, you can attach OllyDbg to Engine.exe
Quote Originally Posted by flameswor10 View Post
Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
	}

	return TRUE;
}
If you use this code, you can attach OllyDbg to Engine.exe

hmm thats same code as my. my just creates a thread for it
Quote Originally Posted by Ch40zz-C0d3r View Post
hmm thats same code as my. my just creates a thread for it
Yes, but creating a thread makes the msgbox popup, but not pause the game.
i hate being stupid its so frustrating i wish somone would teach me face to face how to c++ code so i could just make the hack not complain and whine for somone to make it v.v

Quote Originally Posted by flameswor10 View Post
Yes, but creating a thread makes the msgbox popup, but not pause the game.
Since you are good with making hacks could you maybe help me learn :/ please?
Quote Originally Posted by MarissaMonily View Post
i hate being stupid its so frustrating i wish somone would teach me face to face how to c++ code so i could just make the hack not complain and whine for somone to make it v.v
Since you are good with making hacks could you maybe help me learn :/?
I have taught a few people, but it's a huge task teaching.
You:
1. Have to be patient
2. must have time
3. Must be dedicated

I am patient, but don't have the other 2.
So I will be the most horrible teacher, best way to learn is from your mistakes.
Code a few simple applications, console applications if you must.
Learn from

Learn C++
Quote Originally Posted by flameswor10 View Post
I have taught a few people, but it's a huge task teaching.
You:
1. Have to be patient
2. must have time
3. Must be dedicated

I am patient, but don't have the other 2.
So I will be the most horrible teacher, best way to learn is from your mistakes.
Code a few simple applications, console applications if you must.
Learn from

Learn C++
i feel special /love
steven taught me
Quote Originally Posted by MarissaMonily View Post
I iz confused
Then you obviously shouldn't be in this section.
Quote Originally Posted by flameswor10 View Post
Then you obviously shouldn't be in this section.
Wel obviously i try to learn things but im too stupid to learn them -really frustrated-
If i had the patience and if u would help me learn i would but no none has time for me
steven....?
Quote Originally Posted by joshzex View Post
steven....?
yes? .
CodeNever's tutorial is better, this is just a source, you don't explain any of the code.
Quote Originally Posted by DeadLinez View Post
CodeNever's tutorial is better, this is just a source, you don't explain any of the code.
Let me Explain.

Code:
#include <windows.h>

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
// DllMain is an optional function for you to declare.
// It serves as the entry point for any DLL
{
	DisableThreadLibraryCalls(hDll);
	// Make a call to DisableThreadLibraryCalls with the hModule variable
	// as its argument; Doing this is an optimization trick to prevent
	// needless thread attach/detach messages from triggering further calls
	// to our DllMain function.
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		//When your process gets attached, show a messagebo.
		MessageBoxA(NULL, "This is my MsgBox WOO :D", "My MsgBox", MB_OK);
		//The message will say "This is my MsgBox WOO :D" with the title of "My MsgBox".
		//The only button that the messagebox will be the OK button.
	}
return TRUE;
// Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.

}
http://www.mpgh.net/forum/207-combat...ll-coding.html

This tut is more detailed
Posts 115 of 100 · Page 1 of 7
This thread is closed for replies.

Tags for this Thread

None

Need help?