1 message in net.java.dev.jna.users[jna-users] Re: Calling C++ from Java
FromSent OnAttachments
sagar cNov 10, 2008 10:53 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:[jna-users] Re: Calling C++ from JavaActions...
From:sagar c (chsa@gmail.com)
Date:Nov 10, 2008 10:53:43 am
List:net.java.dev.jna.users

Hi,

I have a C++ class which are compiled into a shared library module. The library has several C++ classes which in turn contain methods. Can I use JNA in this scenario?. I tried to look into 'getting started' section but the examples i believe, only work with System Libraries like kernel32 etc..

when I do 'nm mylibrary.so', I get like (couple of intersting entries)

00007b10 T _Z36zim_StyleParser_ConvertToStaticStyleiP12_zval_structPS0_S0_i 0000f760 T _ZN11StyleParser19ConvertClassToStyleERSsb 'StyleParser' is a class and 'ConvertToStaticStyle' is a method.

All I need to call that method in that C++ class, from my Java Code. I couldn't find any example for this. In my case, what will be the first step.

I am new to this, and need help urgently..

Thank You Sagar