http://www.realsoftware.com/feedback/viewreport.php?reportid=zkoquyon

http://www.realsoftware.com/feedback/viewreport.php?reportid=bsiifnff


I've included these two links for people to add their "watchlist"  votes to.
Please add your support or discuss if you think this would be useful"


ADD NEW UNION  type for interfacing with C API structures via Declares
===============
some Windows APIS pass data to and fro in the form of C structures that
embed C/C++ Unions.

Although one doesn't really need unions in a modern language like RB - many
windows APIs use unions, often embedded in a structure for passing data
around. for example the structure MMTIME in windows MMSystem.h uses a union
internally.

It would be extremely useful if it were possible to set up Unions and embed
these in Structures. This would help in interfacing with such a structure in
RB. It also adds a little flexibility over variants

Add more Ptr types for intrinsic datatypes, as well as Ptrs to structures we
=====================================================

I need to write a class with several different operator_convert() methods
returning pointers to more than one kind of data.

One operator_convert() method needs to return a pointer to a Byte, another a
pointer to UInt32 another a pointer to UInt64 etc. Currently I cannot do
this because there is only the one Ptr type.

please can we have some means of optional differentiation, for example:

Ptr_Int32
Ptr_Int8
Ptr_Int64
Ptr_UInt64

as well as this, it would be extremely useful to specify that a pointer
points to a specific structure that has been defined in REALbasic.

This becomes especially important when structures that embed pointers are
being passed around in Declare calls. naturally this stuff is "scary" but at
least give us the tools to be "scary" when we need to be to interface with
C/C++ :)

a new syntax would be necessary to handle pointers to strucures: maybe
myMethod( Pointer myAPIStructPointer As myStruct )
myMethod( myAPIBytePointer As Ptr_UInt8 )
myMethod( myAPISULongPointer As Ptr_UInt32 )

All this helps us in readability when dealing with Declares to C code.

_______________________________________________
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>

Reply via email to