How do I read the value of an address? - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: How do I read the value of an address?

  1. #16
    Join Date
    Oct 2009
    Posts
    8

    Re: How do I read the value of an address?

    It still does not work. http://img515.imageshack.us/img515/2585/32810391.jpg

    I have literally copied the code but same error.

    Thanks for the replys.

  2. #17
    Join Date
    Apr 1999
    Posts
    27,427

    Re: How do I read the value of an address?

    Quote Originally Posted by Poopynoob View Post
    It still does not work. http://img515.imageshack.us/img515/2585/32810391.jpg

    I have literally copied the code but same error.
    You need to cast the value to an int*, then assign it. That is what's missing in the code.

    Regards,

    Paul McKenzie

  3. #18
    Join Date
    Oct 2009
    Posts
    8

    Re: How do I read the value of an address?

    I have no idea what you have said. Sorry for all the trouble but please elaborate.
    Thanks alot!

  4. #19
    Join Date
    Apr 1999
    Posts
    27,427

    Re: How do I read the value of an address?

    Quote Originally Posted by Poopynoob View Post
    I have no idea what you have said. Sorry for all the trouble but please elaborate.
    Thanks alot!
    Do you have a C++ book? If so, what does it say about "casting" and "casts"? When you google "C++ casting" , what do you see?

    There is even a FAQ:

    http://www.codeguru.com/forum/showthread.php?t=312456

    Regards,

    Paul McKenzie

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center