It´s works!!!
thank you for the answer.
On Fri, Jul 11, 2008 at 3:17 AM, Timothy Wall <twal...@dev.java.net>
wrote:
A native C array is nothing more than a block of memory. You need to use
Pointer.getPointerArray() to convert to a Java array of Pointer.
On Jul 11, 2008, at 1:46 AM, Ulisses Carvalho wrote:
Hi,
I need mapping this structure:
=====================================
typedef struct _wfs_cdm_cu_info
{
USHORT usTellerID;
USHORT usCount;
LPWFSCDMCASHUNIT * lppList;
} WFSCDMCUINFO, * LPWFSCDMCUINFO;
typedef struct _wfs_cdm_cashunit
{
USHORT usNumber;
USHORT usType;
LPSTR lpszCashUnitName;
CHAR cUnitID[5];
CHAR cCurrencyID[3];
ULONG ulValues;
ULONG ulInitialCount;
ULONG ulCount;
ULONG ulRejectCount;
ULONG ulMinimum;
ULONG ulMaximum;
BOOL bAppLock;
USHORT usStatus;
USHORT usNumPhysicalCUs;
LPWFSCDMPHCU * lppPhysical;
} WFSCDMCASHUNIT, * LPWFSCDMCASHUNIT;
=====================================
In this case lppList is a Pointer to an array of pointers to cash unit
structures.
How can mapping this?
If you don't actually need to use the field, just declare it as Pointer.