pointer in VB 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qfchen
    New Member
    • Oct 2006
    • 91

    pointer in VB 2005

    In VB 2005, how to define a varialbe, it is an address of another variable? It's like a pointer in C++

    Thanks
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    #2
    Originally posted by qfchen
    In VB 2005, how to define a varialbe, it is an address of another variable? It's like a pointer in C++

    Thanks

    Comment

    • qfchen
      New Member
      • Oct 2006
      • 91

      #3
      but how to point to the address of another variable? Thanks

      Comment

      • Sick0Fant
        New Member
        • Feb 2008
        • 121

        #4
        Originally posted by qfchen
        but how to point to the address of another variable? Thanks
        You'll have to follow the website I gave you. VB stopped supporting VarPtr in VB6, and now there's no such thing as a pointer in VB .NET. But, as the article points out, you can still invoke the HeapAlloc API function and then use the memory reading/writing functions the author mentions.

        Comment

        Working...