Accessing specific address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saurabhgaur1982
    New Member
    • Jul 2007
    • 3

    #1

    Accessing specific address

    Hi, I need to monitor a particular address location inside a C++ Programme (say 83ede). How can I do that by assigning a pointer to that specific address?
    Thanks.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by saurabhgaur1982
    Hi, I need to monitor a particular address location inside a C++ Programme (say 83ede). How can I do that by assigning a pointer to that specific address?
    Thanks.
    You could use a good ol' C cast:

    [code=cpp]
    unsigned char * address= (unsigned char*)0x83edeL;
    [/code]

    ... but I sincerely doubt if you can solve your problem with it.

    kind regards,

    Jos

    Comment

    • saurabhgaur1982
      New Member
      • Jul 2007
      • 3

      #3
      Yes it indeed helped. Thanks a lot Jos.
      Regards...
      Saurabh Gaur

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        Originally posted by saurabhgaur1982
        How can I do that by assigning a pointer to that specific address?
        Once you have that pointer, do the monitoring on a separate thread to avoid spattering the monitor code throughout your application code.

        Comment

        Working...