Even better, use a using declaration instead of a using directive (at function scope). get/set methods are pointless if they are literally just assignments (might as well make the class member public because it is public in all but name).
Even better, use a using declaration instead of a using directive (at function scope). get/set methods are pointless if they are literally just assignments (might as well make the class member public because it is public in all but name).
Tell my idiotic university professors that :3. Spent first year of Uni having to comply with their bollocks checkstyle which basically said NO PUBLIC VARIABLES and also that EVERY METHOD must be javadoc'd. So you'd end up with ridiculous classes like (note: Java):
It's enough to make you want to slit your wrists.Code:class Foo { private string Name; private int Id; private double Bar; .... /** * Get the name of this class instance * @ return string the name of this class **/ public string GetName() { return this.Name; } /** * Get the identifying number of this class instance * @ return int id of this class instance **/ public int GetId() { return thi*****; } /** * Get the value of Bar for this class instance * @ return double value of Bar **/ public double GetBar() { return this.Bar; } /** * Set the name of this class instance * @ param newName the new name for this class instance **/ public void SetName(string newName) { this.Name = newName; } /** * Set the id of this class instance * @ param newId the new Idfor this class instance **/ public void SetId(int newId) { thi***** = newId; } /** * Set the bar value of this class instance * @ param newBar the new Bar for this class instance **/ public void SetBar(double newBar) { this.Bar = newBar } }
Last edited by Jason; 11-01-2012 at 01:08 AM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Tüm herkese selamlar
Embarcadero C++ => Form Applicaton in DLL OPEN bla bla bla/little speak english...Code:#include "Unit1.h" #include <vcl.h> #include <windows.h> #pragma hdrstop #pragma argsused void FormApp() { Application->Initialize(); Application->Title = "MPGH"; Application->CreateForm(__classid(TForm1), &Form1); Application->Run(); } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved) { if (fwdreason == DLL_PROCESS_ATTACH) { CreateThread(NULL,NULL, (LPTHREAD_START_ROUTINE)FormApp, NULL, NULL, NULL); } else if (fwdreason == DLL_PROCESS_DETACH) { ExitProcess(0); } return true; }
read and write for very important,necessary...
Code:DWORD RDWORD(DWORD paddy); void MDWORD(DWORD paddy, DWORD pval);Sample game code;Code:DWORD RDWORD(DWORD paddy){ DWORD retval; __asm { mov ebx,[paddy] xor eax,eax mov eax,DWORD PTR DS:[ebx] mov retval,eax } return retval; } void MDWORD(DWORD paddy, DWORD pval){ __asm { mov ebx,paddy xor eax,eax mov eax,pval mov DWORD PTR DS:[ebx],eax } }
DWORD ADDR_CHARB = RDWORD(KO_CHARB); read 4 bit KO_CHARB = Pointer...
Last edited by Akar; 12-05-2012 at 11:51 AM.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
I could be rusty with my knowledge of assembly but isn't this:
the same as:Code:DWORD RDWORD(DWORD paddy){ DWORD retval; __asm { mov ebx,[paddy] xor eax,eax mov eax,DWORD PTR DS:[ebx] mov retval,eax } return retval; }
Code:DWORD RDWORD(DWORD* paddy) { return *paddy; }
?
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
makes your dll smaller:
Code:#pragma optimize("gsy", on)
Hello guys
C, C++, and VC++ are programming languages that are widely used for developing software and applications. Snippets of code can be helpful in speeding up the development process, but it's important to ensure that the code is well-written, efficient, and secure.Free Fire