View previous topic :: View next topic |
Author |
Message |
elshabory Newbie cheater Reputation: 0
Joined: 02 Mar 2011 Posts: 20
|
Posted: Fri Jun 17, 2011 1:28 pm Post subject: (vb6) reuse a string position |
|
|
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 |
|
|
Ax3l Cheater Reputation: 1
Joined: 22 May 2011 Posts: 37
|
Posted: Sun Jun 19, 2011 1:51 pm Post subject: |
|
|
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 |
|
|
elshabory Newbie cheater Reputation: 0
Joined: 02 Mar 2011 Posts: 20
|
Posted: Sun Jun 19, 2011 5:57 pm Post subject: |
|
|
thank you for replay
i will go to try it
|
|
Back to top |
|
|
elshabory Newbie cheater Reputation: 0
Joined: 02 Mar 2011 Posts: 20
|
Posted: Mon Jun 20, 2011 7:47 pm Post subject: |
|
|
not working
|
|
Back to top |
|
|
Krähne Expert Cheater Reputation: 0
Joined: 06 Jun 2010 Posts: 108 Location: Inside of my Kernel
|
Posted: Mon Jun 20, 2011 9:25 pm Post subject: |
|
|
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 |
|
|
Ax3l Cheater Reputation: 1
Joined: 22 May 2011 Posts: 37
|
Posted: Tue Jun 21, 2011 9:20 am Post subject: |
|
|
Do you know what "hello world" means ?
if you don't then you're a wannabe hacker lol
_________________
|
|
Back to top |
|
|
lucidity Advanced Cheater Reputation: 0
Joined: 16 Feb 2011 Posts: 91
|
Posted: Tue Jun 21, 2011 10:26 am Post subject: |
|
|
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 |
|
|
Ax3l Cheater Reputation: 1
Joined: 22 May 2011 Posts: 37
|
Posted: Tue Jun 21, 2011 10:27 am Post subject: |
|
|
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 |
|
|
lucidity Advanced Cheater Reputation: 0
Joined: 16 Feb 2011 Posts: 91
|
Posted: Tue Jun 21, 2011 10:36 am Post subject: |
|
|
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 |
|
|
|