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 


(vb6) reuse a string position

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

Joined: 02 Mar 2011
Posts: 20

PostPosted: Fri Jun 17, 2011 1:28 pm    Post subject: (vb6) reuse a string position Reply with quote

i make a binary search with th function file open
i got the string
my question is

i need to reuse the position of the string to calculate another position for reading the new position

is there a way to do this ??
Back to top
View user's profile Send private message
Ax3l
Cheater
Reputation: 1

Joined: 22 May 2011
Posts: 37

PostPosted: Sun Jun 19, 2011 1:51 pm    Post subject: Reply with quote

I don't really get what you mean

something like


int pos1 = getpos();
//use pos1
int pos2 = getpos();

Dosomething(pos1,pos2);


something like that would do it

_________________
Back to top
View user's profile Send private message MSN Messenger
elshabory
Newbie cheater
Reputation: 0

Joined: 02 Mar 2011
Posts: 20

PostPosted: Sun Jun 19, 2011 5:57 pm    Post subject: Reply with quote

thank you for replay
i will go to try it
Back to top
View user's profile Send private message
elshabory
Newbie cheater
Reputation: 0

Joined: 02 Mar 2011
Posts: 20

PostPosted: Mon Jun 20, 2011 7:47 pm    Post subject: Reply with quote

not working
Back to top
View user's profile Send private message
Krähne
Expert Cheater
Reputation: 0

Joined: 06 Jun 2010
Posts: 108
Location: Inside of my Kernel

PostPosted: Mon Jun 20, 2011 9:25 pm    Post subject: Reply with quote

I swear! you will get more support if you use another languaje...

C# for example, Visual Basic SUX!!!

_________________
Excuse me if you don't understand what I just said, but "english" isn't my native language.
Back to top
View user's profile Send private message MSN Messenger
Ax3l
Cheater
Reputation: 1

Joined: 22 May 2011
Posts: 37

PostPosted: Tue Jun 21, 2011 9:20 am    Post subject: Reply with quote

Do you know what "hello world" means ?
if you don't then you're a wannabe hacker lol

_________________
Back to top
View user's profile Send private message MSN Messenger
lucidity
Advanced Cheater
Reputation: 0

Joined: 16 Feb 2011
Posts: 91

PostPosted: Tue Jun 21, 2011 10:26 am    Post subject: Reply with quote

Not to mention VB2010 Express is free, why are you using VB6?
_________________
» Antec Twelve Hundred Full Tower » EVGA E760 CLASSIFIED » EVGA GeForce GTX 580 SuperClocked 1536MB » i7-980XE » CORSAIR DOMINATOR 6GB PC3 12800 DDR3 » OS: Intel X25-M SSD » Game Storage: Raid-0 2 x WD VelociRaptor 10000 RPM » CE Cache Drive: 500GB WD Caviar » Power Supply: OCZ Z Series Gold 1000W
Back to top
View user's profile Send private message
Ax3l
Cheater
Reputation: 1

Joined: 22 May 2011
Posts: 37

PostPosted: Tue Jun 21, 2011 10:27 am    Post subject: Reply with quote

And what I did was an example

of course getpos() doesn't exist you'll have to use your own implementation there

_________________
Back to top
View user's profile Send private message MSN Messenger
lucidity
Advanced Cheater
Reputation: 0

Joined: 16 Feb 2011
Posts: 91

PostPosted: Tue Jun 21, 2011 10:36 am    Post subject: Reply with quote

Well I'm pretty sure he doesn't quite want what you posted.

I think he's saying that there are two values in memory in close proximity, and he has the address of one of them. He wants to use that address to calculate the address of the other string.

So it would be more like (VB 2010):

Code:
 ' The following assumes you know the difference
 ' between the known and desired values, and that
 ' you have the known address in an IntPtr named
 ' "KnownAddress"

 ' This should be the number of bytes (in decimal)
 ' between the start of the two values
Dim AddressOffset As Integer = 12345

 ' This converts the known address from
 ' an IntPtr (presumably), to a decimal value
 ' The value is stored in a new IntPtr, "NewAddress"
Dim NewAddress As IntPtr = New IntPtr(KnownAddress.ToInt32 + AddressOffset)

_________________
» Antec Twelve Hundred Full Tower » EVGA E760 CLASSIFIED » EVGA GeForce GTX 580 SuperClocked 1536MB » i7-980XE » CORSAIR DOMINATOR 6GB PC3 12800 DDR3 » OS: Intel X25-M SSD » Game Storage: Raid-0 2 x WD VelociRaptor 10000 RPM » CE Cache Drive: 500GB WD Caviar » Power Supply: OCZ Z Series Gold 1000W
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