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 


convert c++ pointer -> delphi help!!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
onlyus
Newbie cheater
Reputation: 0

Joined: 27 Aug 2011
Posts: 19
Location: 214214

PostPosted: Sat Nov 16, 2013 1:55 am    Post subject: convert c++ pointer -> delphi help!! Reply with quote

struct aStruct{
aStruct* Prev;
aStruct* Next;
};

aStruct** ppFirst = (aStruct**)0x0

for(aStruct* pPlayer = *ppFirst; (int)pPlayer > 0; pPlayer = pPlayer->Next)
{}


how to convert this code??? (delphi) help please

_________________
i'm noob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sat Nov 16, 2013 1:02 pm    Post subject: Reply with quote

something like this:
Code:

type
 PaStruct=^TaStruct;
 TaStruct=record
    Prev: PaStruct;
    Next: PaStruct;
  end;

var pFirst: ^PaStruct;
var pPlayer: PaStruct;
...
pfirst:=pointer($0);

pPlayer:=pfirst^;

while pPlayer<>nil do
begin
  //{}
  pPlayer:=pPlayer.next;
end


(Just a fyi, that C code would bug out in kernelmode)

_________________
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
onlyus
Newbie cheater
Reputation: 0

Joined: 27 Aug 2011
Posts: 19
Location: 214214

PostPosted: Sun Nov 17, 2013 6:48 am    Post subject: Reply with quote

thank you dark byte!!
_________________
i'm noob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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