Results 1 to 12 of 12

Thread: memory address

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Location
    US
    Posts
    68

    memory address

    has any one figured out how to grab a memory address of a varient stored in memory yet? i cant seem to find anything on any forums

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Probably not, VB.NET is a higher level language. Try C# or C++ if you need this.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Maybe through API .

  4. #4
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    Variant? I thought we'd finally decided they were a bad thing.

    Use SystemInterop.Marshal class to read/write memory to/from managed variables.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Merrion
    Variant? I thought we'd finally decided they were a bad thing.

    Use SystemInterop.Marshal class to read/write memory to/from managed variables.
    I don't think Marshalling will do the trick . If I still understand its function , it's for passing variables from managed to unmanaged code with some customization .

    Or

    make a function in C/C++ that gets a referenced variable which will be an address store . You can ask in C/C++ forums . Then reference this function as dll in your project .

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I think Pirate's on the right track. VB recognizes IntPtr. However, you cannot use it to grab a memory address. For that, you must include a C# project into your solution, and write code to return an IntPtr from an object argument. That may work.

    Perhaps VS 2005 will include pointers in VB, but it really moves away from the whole managed structure... so i doubt it.

  7. #7
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Can you use AddressOf?
    Just a shot in the dark.

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by hellswraith
    Can you use AddressOf?
    Just a shot in the dark.
    You must be kidding !!

  9. #9
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464

  10. #10
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Here is my question to the thread starter... Why?

    Why do you need a memory address?

    If you need a memory address, you need to start looking at a different language. Here is my vote -> C++

  11. #11
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Originally posted by hellswraith
    Can you use AddressOf?
    Just a shot in the dark.
    The samething happened in another thread
    http://www.vbforums.com/showthread.p...postid=1594944
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Mar 2003
    Location
    US
    Posts
    68
    heres the deal, i hate varients with a passion but i purchased an old LEAD Tools activeX control for viewing Postscript(way cheaper then .net control) , that has 2 real options 1 is load byte array and i can get it to load but not that much faster, so the other is LoadBuffer where i can throw the memory address of a varient in memory, i tried the addressOf operater but didnt load right. I'm gonna go back to messing with the loadbuffer, and post it if i get it

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