Passing array of C# structs
Ephraim Yawitz <[email protected]>
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CAP-4f0L9P6Ua3L81L-5hojXTzDd=EqwtTwhtLoBtKdU60FB66A@mail.gmail.com> |
Hi,
I raised this subject a while back, but I didn't get any useful answer, and
I wrote a native-code workaround. Maybe now someone has some advice.
I have a C struct:
typedef struct t_IN
{
unsigned int a;
unsigned int b;
unsigned int c;
} t_IN;
and a C function:
int ReceiveString(t_IN *pUserbuf, int dwCount);
where pUserbuf represents an array of t_IN structs.
If I try to use CSHARP_ARRAYS(t_IN, t_IN)
and
%apply t_IN INOUT[] {t_IN * pUserbuf}
the pointer that the wrapper sends to the C code does not work as an array.
Does someone know the magic words I have to use?
Thank you,
Ephraim Yawitz
_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user