On 22-Jan-07, at 4:23 PM, Daniel Stenning wrote:
dim myCInt64ArrayPointer as Ptr = getMyPointer()
dim myElement as Int64 = Ptr.Int64[8]
note that whereas dim myElement as Int64 = Ptr.Int64(8) returns the
second
element as an offset of 8 gives us the second Int64 in the array
dim myElement as Int64 = Ptr.Int64[8] would return the 8th element
- ie
using
an offset from Ptr of 8X8 bytes.
Sign on here if this is of use to you:
I like the idea, but not so much the implementation. Strongly typed
pointers would make more sense to me, e.g.:
Pointer myCInt64ArrayPointer as Int64 = getMyPointer()
Dim myElement as Int64 = myCInt64ArrayPointer(8) // Get the 8th Int64
Frank.
<http://developer.chaoticbox.com/>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>