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 


What am I doing wrong...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Nov 19, 2007 8:03 pm    Post subject: What am I doing wrong... Reply with quote

Code:
procedure TForm1.Button1Click(Sender: TObject);
var
  value : cardinal;
  write : cardinal;
begin
GetProcessID('Tester.exe',PidID);
PidHandle  :=  OpenProcess(PROCESS_ALL_ACCESS,False,PidId);
//messagedlg(PidID,mtInformation,[mbok],0);
value := 284;
WriteProcessMemory(PidHandle, ptr($CF06FC), @value, 4, write);
closehandle(PidHandle);
end;

end.


Why isn't writeprocessmemory working? I want 4 byte by the way.

And can some1 explain how to do double and text... etc?
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Mon Nov 19, 2007 8:04 pm    Post subject: Reply with quote

check the return values
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Nov 19, 2007 8:17 pm    Post subject: Reply with quote

What return Values???
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Mon Nov 19, 2007 8:25 pm    Post subject: Reply with quote

FROM THE API WHAT ELSE!
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Mon Nov 19, 2007 8:29 pm    Post subject: Reply with quote

Return Value: Nothing T.T
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
Page 1 of 1

 
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