3 messages in net.java.dev.jna.usersRe: [jna-users] newbie question - C++...
FromSent OnAttachments
Tim EmiolaDec 21, 2007 8:26 am 
Timothy WallDec 21, 2007 3:01 pm 
Wayne MeissnerDec 23, 2007 8:34 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: [jna-users] newbie question - C++ library accessActions...
From:Wayne Meissner (wmei@gmail.com)
Date:Dec 23, 2007 8:34:35 am
List:net.java.dev.jna.users

I would suggest swig for wrapping C++ - or one of the commercial offerings that Timothy mentioned. Swig can do a reasonable job of replicating your C++ object hierarchy in java.

Using JNA would be more pain than its worth, unless you only need a handful of objects/methods.

On 22/12/2007, Tim Emiola <tbe@users.berlios.de> wrote:

Hi,

I apologise if this is already answered in the JNA documentation, or elsewhere on the mailing list, but I looked I could not find anything clear.

I'm new to JNA - I'm evaluating the use of JNA as opposed to SWIG+JNI for providing a java wrapper for some C++ libraries that I wish to use from java. The C++ libraries are relatively stable, so I don't really want to change anything about them, although at a push, I will be able to tweak how they get built.

How do I access a C++ objects/methods in a shared library from JNA? Is there any documentation about the best way to do this?