Thread: Pointer

Results 1 to 4 of 4
  1. #1
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool

    Pointer

    Alright well I've looked around and I can't get a good definition of a pointer for some reason. I've seen that a pointer gets it's space allocated at runtime. Is that true? For example, if I have

    Code:
     
    lpText equ offset text     ;set a pointer to the offset (location) text
    
    .data
    text db "Pointers are fun!", 0
    then lpText doesn't get it's size until I run my program that will push lpText onto the stack for my MessageBoxA correct? Thanks a lot, really need that cleared up.
    Last edited by Shark23; 11-11-2010 at 03:29 PM.
    Assembly Programmer

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Sorry, I don't get the question. \:

    I've read over this several times but I don't get what you're asking.

  3. #3
    HellSpider's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    103
    Reputation
    30
    Thanks
    133
    My Mood
    Asleep
    Why do you need to have 2 variables defined for the same string?

    A pointer is just like the name suggests. It points to a defined memory location, in this case the string in the .data section. A pointer does "not" have a size (depends on how you look at it, the address itself is in 32-bit programs a DWORD, it does not relate to the size of data it might point).

    You could just do it like this:

    Code:
    .data 
    
    lpText db "Pointers are fun!", 0
    
    .code
    
    ...
    
    push 10h
    push 0
    push offset lpText
    push 0
    call MessageBox
    
    ...
    Idk if it made any sense, like Void, I don't really understand your question .
    Last edited by HellSpider; 11-12-2010 at 02:54 PM.

  4. The Following User Says Thank You to HellSpider For This Useful Post:

    Shark23 (11-12-2010)

  5. #4
    Shark23's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Kansas
    Posts
    424
    Reputation
    10
    Thanks
    55
    My Mood
    Cool
    My wording was crap there, sorry. HellSpider, that was pretty helpful. I got my problem solved anyway.
    Assembly Programmer

Similar Threads

  1. (request) tutorial on pointer finding
    By ragman1234 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 03-26-2007, 03:21 PM
  2. i need some help dealing with warrock pointers
    By shakib in forum Hack Requests
    Replies: 1
    Last Post: 02-11-2007, 12:37 PM
  3. Weapon Pointer TUTORIAL
    By Fortran in forum WarRock - International Hacks
    Replies: 120
    Last Post: 02-10-2007, 08:44 PM
  4. OMS .32 pointers
    By Doctrine in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 12-28-2006, 01:31 PM
  5. Warrock Vehicle Weapon No-overheat Pointer
    By Fortran in forum Game Hacking Tutorials
    Replies: 0
    Last Post: 12-21-2006, 12:16 AM