Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » ASM Addresses
Re: ASM Addresses [message #246059 is a reply to message #245977] Tue, 20 February 2007 09:54 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
#include <iostream>
using namespace std;

int myfunct(int myparam)
{
      return myparam+10;
}

int main()
{

      cout << "Call the function: " << myfunct(2) << endl << "Function address: " << &myfunct << endl;
      system("pause");
      return 0;
}


for my own interest, how do you get the function in bhs.dll and how would you make such an application IE: stop the message from showing? the only way i know how to hack is to:

#include <iostream>
using namespace std;

typedef int (*_myfunctptr)(int param);
int main()
{
	_myfunctptr myfunctptr = (_myfunctptr)12423574; //some funct address

	cout << myfunctptr(2) << endl;
	
	system("pause");
      return 0;
}


how do i get the addresses of the functions i want to hack?

[Updated on: Tue, 20 February 2007 09:58]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compile scripts.dll Error (no changes)
Next Topic: Brenbot ipbot down today
Goto Forum:
  


Current Time: Thu Oct 17 10:27:38 MST 2024

Total time taken to generate the page: 0.00963 seconds