might this FR help ?

( Summary: Allow Structure elements defined as Byte(SIZE) arrays to be cast
as intrinsic datatypes or other stuctures)

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


On 11/3/07 19:25, "Jim Dossey" <[EMAIL PROTECTED]> wrote:

> Right, the structure is a fixed size.  The last element is a fixed size
> buffer something like char[1024].  The first element in the structure is a
> size field that tells the called function how big the whole structure is so
> it will know how much room it has to work with.  The structure has offset
> and size fields that tell you the offset from the beginning of the structure
> to the location of a variable sized field (inside the char[1024]) along with
> a size field that tells you how many bytes to read.
> 
> You can look at the Micro$oft MSDN TAPI docs if you want to read more about
> it.
> 
> I use a structure to read the fixed fields, but then I have to copy the
> whole structure to a memory block to read the variable sized fields.
> 
> On 3/7/07, Daniel Stenning <[EMAIL PROTECTED]> wrote:
>> 
>> So basically you have a FIXED SIZE C struct  where some elements are (
>> fixed
>> size ) pointers to other memory areas ?.  Ie the struct itself is still
>> fixed in size?  I never heard of a variable sized C struct.
>> 
>> On 27/2/07 15:52, "Jim Dossey" <[EMAIL PROTECTED]> wrote:
>> 
>>> 
>>> I would like to have the ability to reference a block of memory using
>> both a
>>> structure and a memoryblock at the same time.  I'm using some Windows
>>> declares that return variable sized structures.  They have a fixed
>> structure
>>> area at the beginning of the block, which is followed by a variable
>> area.
>>> There are pointers in the fixed structure block that point to variable
>> sized
>>> fields in the variable block.
>>> 
>>> There is no FR for this.  I'm just wondering if anyone else could use
>> this
>>> feature.
>> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
> 

Regards,

Dan

_______________________________________________________
www.13flatFIVE.com
The C++ <> REALbasic code migration specialists


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to