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

Thread: Address of data

  1. #1
    Join Date
    Mar 1999
    Posts
    3

    Address of data



    i,

    How can i store data address in a Long ??

    I mean :


    Dim myAddress As Long

    Dim myData As Integer


    ...

    myAddress = The address of myData

    ...


    Thanks



  2. #2
    Join Date
    May 1999
    Posts
    45

    Re: Address of data



    Try myAddress = VarPtr(myData). It's undocumented. Also try for strptr & objptr for string & objects.



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