|
-
Jan 4th, 2004, 05:40 AM
#1
Thread Starter
Lively Member
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
-
Jan 4th, 2004, 12:44 PM
#2
Probably not, VB.NET is a higher level language. Try C# or C++ if you need this.
-
Jan 4th, 2004, 01:19 PM
#3
Sleep mode
-
Jan 5th, 2004, 04:14 AM
#4
Variant? I thought we'd finally decided they were a bad thing.
Use SystemInterop.Marshal class to read/write memory to/from managed variables.
-
Jan 5th, 2004, 12:07 PM
#5
Sleep mode
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 .
-
Jan 5th, 2004, 01:19 PM
#6
I wonder how many charact
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.
-
Jan 5th, 2004, 01:57 PM
#7
PowerPoster
Can you use AddressOf?
Just a shot in the dark.
-
Jan 5th, 2004, 02:06 PM
#8
Sleep mode
Originally posted by hellswraith
Can you use AddressOf?
Just a shot in the dark.
You must be kidding !!
-
Jan 5th, 2004, 03:51 PM
#9
PowerPoster
-
Jan 5th, 2004, 03:53 PM
#10
PowerPoster
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++
-
Jan 5th, 2004, 04:22 PM
#11
Frenzied Member
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
-
Jan 5th, 2004, 06:00 PM
#12
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|