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] Translating "DwReadReturn" from C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Sat Jul 05, 2008 3:46 am    Post subject: [Delphi] Translating "DwReadReturn" from C++ Reply with quote

Code:
   }
   
   DWORD dwReadReturn = NULL;

   while ( dwReadReturn != 0xF745950F )
   {


How this would look like in delphi?

Like:

Code:
var
dwReadReturn : dword;
begin
dwReadReturn := "?";
while "?????????????????"
end;


Can anybody help me? Smile

_________________

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Jul 05, 2008 4:03 am    Post subject: Reply with quote

!= means does not equal. I personally don't know Delphi but as a guess based on Google searching..

Code:
while not dwReadReturn = 0xF745950F do


I'm not sure how Delphi handles hex values either :s

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Sat Jul 05, 2008 4:30 am    Post subject: Reply with quote

Quote:
var
dwReadReturn : dword;
begin
dwReadReturn := nil; //thanks to noz3001
while not dwReadReturn = $F745950F do
end;



Got this compiling error thought..


_________________

Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Jul 05, 2008 6:14 am    Post subject: Reply with quote

nil is empty pointer.
null is empty value.(if you get an error include "Variants" in the uses).
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Jul 05, 2008 6:55 am    Post subject: Reply with quote

HolyBlah wrote:
nil is empty pointer.
null is empty value.(if you get an error include "Variants" in the uses).


Damn delphi crap. Just set it to 0 lol.
Back to top
View user's profile Send private message MSN Messenger
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Sun Jul 06, 2008 6:13 am    Post subject: Reply with quote

I think in delphi they use <>
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sun Jul 06, 2008 7:22 am    Post subject: Reply with quote

the code should look like this:
Code:
var
  dwReadReturn : dword;
begin
  dwReadReturn := null;
  while dwReadReturn <> $F745950F do
  begin
  end;
end;
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