Results 1 to 7 of 7

Thread: Memory address

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Russia
    Posts
    15

    Question

    Hi everybody!

    Can you help me?
    I need to know what the address of some text, or number.
    What functions I must use?

    Thanks.
    Vodka, womens, computer...

  2. #2
    Guest
    Try this.

    First, make a blank form with nothing on it.
    Add:

    Code:
    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
    On Error goto Escaflowne
    Me.Run
    Me.DoNow = "Press a Key"

    Is that what you want?

  3. #3
    Lively Member
    Join Date
    May 2000
    Location
    Norway
    Posts
    112
    Look up the
    VarPtr and StrPtr functions.

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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).

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Russia
    Posts
    15

    Question

    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?
    Vodka, womens, computer...

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Russia
    Posts
    15
    Maybe in another forum somebody help me.... }:-(
    Vodka, womens, computer...

  7. #7
    Guest
    I'd go for the Cheats

    A lot simpler....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width