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 


[Question] Pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sat Mar 22, 2008 7:18 am    Post subject: [Question] Pointers Reply with quote

some1 know how to use pointers in delphi \ c \ vb?
i mean like for example i have 2 variables:

asdf: string;
qwer: string;
asdf := 'qwer'
qwer := 'lol'

now i need to use asdf as a pointer, and get the data stored inside qwer.

i know u can do it in ASM, iunno how to do it in other compilers.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sat Mar 22, 2008 7:21 am    Post subject: Re: [Question] Pointers Reply with quote

haha01haha01 wrote:
some1 know how to use pointers in delphi \ c \ vb?
i mean like for example i have 2 variables:

asdf: string;
qwer: string;
asdf := 'qwer'
qwer := 'lol'

now i need to use asdf as a pointer, and get the data stored inside qwer.

i know u can do it in ASM, iunno how to do it in other compilers.


Delphi, I'm pretty sure it's

Code:

qwer : string;
asdf : ^string;

asdf := @string;


or something like that.

For C,

Code:

int hallo = 0;

int *hello = &hallo;


As for VB, I've got no clue.

A simple Gewgle search could quite probably yield the answer. =P

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Mar 22, 2008 11:01 am    Post subject: Reply with quote

AddressOfasdf := @asdf;
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sat Mar 22, 2008 2:14 pm    Post subject: Reply with quote

In VB6 you can use VarPtr, StrPtr, and CopyMemory to accomplish this.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sun Mar 23, 2008 3:51 am    Post subject: Reply with quote

thx all =D
and wtf, www.gewgle.com redirects u to www.google.com O.o
Back to top
View user's profile Send private message Send e-mail 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