again I have a problem to implement a C dll in PB.
Problem is that there are many 'open' arrays in structures.
Example:
Code: Select all
struct libusb_interface_descriptor {
:
:
:
/** Array of endpoint descriptors. This length of this array is determined
* by the bNumEndpoints field. */
const struct libusb_endpoint_descriptor *endpoint;
:
Code: Select all
*endpoint.libusb_endpoint_descriptor[0]
If I remove the [0] I get the right structure size, but I can not access the arrays in an easy way.
If I use [1] I get also the correct size, but I can not access [2] for example.
Code: Select all
Structure Test
test.u
EndStructure
Structure MainTest
*test.Test[0]
EndStructure
Debug SizeOf(MainTest)
A [] would be the best option (for me

At the moment I have no idea how to solve such a problem without a lot of work around this.
Example:
Code: Select all
*endpoint = *conf_desc\usb_interface[i]\altsetting[j]\endpoint[k]
Bernd