Hi All
I made some progress, I think it's a data type issue (unsigned short in
C), my code
typedef struct
{
char* a;
StructA sa;
StructB* sb;
double c;
double d;
} Info;
One data type in StructA is unsigned short, I use short in java code
public static class StructA extends Structure{ public int x; public
short y}
public static class Info extends Structure{
public String a;
public StructA sa;
public Pointer sb;
public double c;
public double d;
}
I got error message when run the above code: Invalid memory access
But after comment out y, like this public static class StructA extends
Structure{ public int x; // public short y}
I can run the code, and be able to read String a in Info and X in
StructA, but I got 0.0 for both c and d which shouldn't be.
How can I mapping unsigned short in java?
Thanks
Hao
*************************************************************************
PRIVILEGE AND CONFIDENTIALITY NOTICE:
The information in this email is intended for the named recipients only.
It may contain privileged and confidential information. If you have
received this communication in error, any use, copying or dissemination
of its contents is strictly prohibited. Please erase all copies of the
message along with any included attachments and notify Intermap
Technologies or the sender immediately by telephone at the number
indicated on this page.