CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Guest

    pointer to long var

    Is there any trick to get the address/pointer of/to a long variable ?
    (like &-operator in C)

    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: pointer to long var

    use the undocumented VarPtr function in VB


  3. #3
    Guest

    Re: pointer to long var

    Thank you Lothar.
    Do you know another undocumented function for the '*' or '->' C-operator ?




  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: pointer to long var

    no, but having retrieved the address of the variable or object (ObjPtr), you can use CopyMemory API to access that memory (very carefully :-))


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

Featured