Forum > General

Write in Memory address

(1/2) > >>

The_Genaro:
Hi everybody!!!

  how can I write in especific memory addres???
exeample:

I need write '59'  in 0x23456D...

i try whit "fillmemory()" from windwos api, but can be whit pascal function??   

any idea??

thax!!!

 

Zaher:
No you can not access the memory directly like that.
Why you need it?

MuteClown:

--- Quote from: Zaher on February 25, 2010, 04:56:54 am ---No you can not access the memory directly like that.
Why you need it?

--- End quote ---

He's probably trying to make a game trainer, i know you can do things like that in C++ i also thought you could do it in Pascal?

Ñuño_Martínez:
In modern OS it's not a good idea to access memory directly.

Anyway I didn't test it but may be this works.


--- Code: ---VAR
  MyPointer: ^BYTE;
BEGIN
  MyPointer := POINTER ($23456D...);
  MyPointer^:= 59;
END;

--- End code ---


--- Quote from: MuteClown on February 25, 2010, 08:13:16 am ---He's probably trying to make a game trainer...

--- End quote ---

Are they still working that way? I thought they modify data files nowadays.

Zaher:
That code make Access Violation in protected systems.

Navigation

[0] Message Index

[#] Next page

Go to full version