On May 16, 2006, at 3:57 PM, Dan Stenning wrote:
Bloody brilliant!
A few more questions re : < You can use the name of any structure-
safe
type in place of "Integer" >
How does this work if the data came from C++ ? For example if my
Ptr points
at a block of 4 byte C++ floats do the float formats in C++ and RB
match?
Yes. Single = float, Double = double. The integer types are a bit
more explicit, although let me know if you need any clarification
with those.
How about boolean
Boolean is an 8-bit entity, so either char or unsigned char
(whichever you prefer to consider it).
And what about pointers to pointers?
Can I do :
Dim foo as ptr
Dim foo1, foo2 as ptr
foo = getFoo()
foo1 = foo.Ptr(0)
foo2 = foo.Ptr(4)
Yep. Just be careful, now :) Ptr's are like declares -- once you
start delving into them, if you crash, it's not our fault (most likely).
-Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
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>