Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
how can a vector object be passed as a parameter from JNI to c++
Joined: May 08, 2005
Sep 16, 2005 23:11:00
i am working on a program were i need to pass the vector object which i am sending from
Through the jobject which i recieve in JNI , i cannot access the vector elements.
can u plz tell me how should i use it
Joined: Nov 05, 2004
Sep 17, 2005 13:13:00
This thread belongs to the the Othe Java API's forum.
To answer your question, you have to use reflection to call the methods on the Java Vector object from C++. Look at this
in the JNI tutorial on how to call Java functions from Native Code.
It is sorta covered in the
JavaRanch Style Guide
subject: how can a vector object be passed as a parameter from JNI to c++
how to pass Strng array from java to c Using JNI
Mapping C(void *) void pointer - JNI---- !!!URGENT!!!!
create c++ object from java
what is JNI and what are the advantages of JNI?
Invoke Java library from C/C++
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013