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 


Delphi Prob....Need Help Please....

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

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Thu Apr 02, 2009 2:38 pm    Post subject: Delphi Prob....Need Help Please.... Reply with quote

Well here are the codes and thier placements as follows...

HookSend
Code:

function hookSend(s:Integer; buf:PAnsiChar; len:Integer; flags:Integer; i:Integer):Integer; stdcall;
begin
  try
  if (Main.SendToggle.Checked) then begin
    typeStrings.Add('Sent');
    dataStrings.Add(PAnsiChar(@buf^));
    sockStrings.Add(IntToStr(s));
    for i:= 1 to typestrings.count -2 do
    Main.SockDisp.text := sockstrings.strings[i];
    Main.updateLists;
    end;
    Finally
    Result := unhookedSend;
  end;
end;



RecvList
Code:
 
procedure TMain.RecvListClick(Sender: TObject);
begin
pmemo.text:=SendList.items[RecvList.itemindex];
end;



SendList
Code:
procedure TMain.SendListClick(Sender: TObject);
begin
pmemo.text:=RecvList.items[SendList.itemindex];
end;
end.


I'm attempting to creat an AutoSocket ID for my trainer for AQW, can anyone help me with this? Everytime i choose a server it crashes(it's just because of one of these codes or all of them), it works fine without them... Will+REP it suggestion helps, appreciate anyone's help and comments, thank you.

_________________
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25796
Location: The netherlands

PostPosted: Thu Apr 02, 2009 7:57 pm    Post subject: Reply with quote

you don't seem to be passing the parameters of send to unhookedSend
Check that the pointer type is defined with the proper function declaration

Then there's also the thing of thread safety. (calling gui stuff from isnide a different thread will cause a crash 99% of the time. Try using message based events and fill the message with the send event data and send it off to the window or thread handler)

The rest of the code looks buggy as well, but the main problem is with the unhookedSend

for a pe example in delphi check the plugin sourcecode of the packet editor

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Thu Apr 02, 2009 8:49 pm    Post subject: Reply with quote

Dark Byte wrote:
you don't seem to be passing the parameters of send to unhookedSend
Check that the pointer type is defined with the proper function declaration

Then there's also the thing of thread safety. (calling gui stuff from isnide a different thread will cause a crash 99% of the time. Try using message based events and fill the message with the send event data and send it off to the window or thread handler)

The rest of the code looks buggy as well, but the main problem is with the unhookedSend

for a pe example in delphi check the plugin sourcecode of the packet editor


Oh, well im using Yoshi's Tut and just editing it to my standards, he told me to use those codes but they don't work and are buggy like you said. Do you know what they need to be? i didn't really make the source myself ^.^ All i can really do is mess with the simple stuff like buttons and toggles and implementations, that's about it ^.^....... Please help, i really need it lol....

_________________
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