Hi everybody!
Can you help me?
I need to know what the address of some text, or number.
What functions I must use?
Thanks.
Printable View
Hi everybody!
Can you help me?
I need to know what the address of some text, or number.
What functions I must use?
Thanks.
Try this.
First, make a blank form with nothing on it:).
Add:
On Error goto EscaflowneCode:Private Sub Form_Load ()
Me.Print "Press a Key, and see the ASCII Number."
End Sub
Private Sub Form_Keypress (keyascii As Integer)
Msgbox "Your char, " & Chr(keyascii) & " has a code of " & keyascii
End Sub
Me.Run
Me.DoNow = "Press a Key"
;)Is that what you want? :)
Look up the
VarPtr and StrPtr functions.
You can't really look up the VarPtr and StrPtr Functions because they're undocumented, but you can use them.
VarPtr(x)
returns the address of a variable x.
Strings in vb are different, they are stored in VB as a pointer to an array of integers(one for each character, it's unicode) Varptr retrns the address of that pointer (as in a pointer to a pointer) If you want the address of the first character of the BSTR then use StrPtr(MyString).
Alright, I have some program, that already working, and I need to change values of it(Sample Quake, Health:100).
How I can make find this values in memory?
Maybe in another forum somebody help me.... }:-(
I'd go for the Cheats ;)
A lot simpler....