Posted by Frank Hale on 2000-07-04
Lets say I have the following C code:
struct myStruct
{
int a;
int b;
};
void foo(struct myStruct *bar)
{
/* Code here... */
}
How can I call this from Java using JNI. More specifically how do I represent the structure myStruct in the java code? What about the pointer that this function takes, how do I deal with that? I wanna write a wrapper using JNI for a C library and it has plenty of situations like the one I mention above.
I'm using JDK 1.3
Thanks,
Frank
Send FREE Greetings for Father's Day--or any day!
Click here: http://www.whowhere.lycos.com/redirects/fathers_day.rdct
Previous post | Next post | Timeline | Home