1 message in net.java.dev.jna.usersRe: JNI and a problem
FromSent OnAttachments
Timothy WallMar 5, 2008 11:26 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: JNI and a problemActions...
From:Timothy Wall (twal@dev.java.net)
Date:Mar 5, 2008 11:26:28 am
List:net.java.dev.jna.users

On Mar 5, 2008, at 1:41 PM, dene@gmail.com wrote:

Hi,

I am writing a library for Java with JNI. But at header file a have a problem that I don't understand that how can I implement the C type to Java type. When I start the example for library VM crash.

For example Structure is:

#define MAX_STREAMS 20

typedef struct Structure1 { ... PlayStream *streams[MAX_STREAMS]; ... }

Fundamentally, this is an array of pointers. You can use Pointer[] or Structure.ByReference[].