JNI Problem(Best way to do this?)
Hi all,
I am trying to execute a C program from a Java Program. All things are working fine but when I am returning a char* pointer from C code to native C file I am unable to get this string(In opposite to that I can send a char* from native code to C code)
In core C code I am doing:-
struct Data{
float lat;float lon;const char* option_val;int link;int node;int cell;float displat;float displon;
};
In native C code:-
I can read the other members float,int etc from structure Data but not this char*. Please tell me how we can do this?
Basically my core C code generates some data which consists of float, string, int etc. I have thought to make a struct array in core C code and will pass it's pointer to native C code and then this native code will set this in some vector. Is there any other best way to do this?
My similar post is at:-
http://forum.java.sun.com/thread.jspa?threadID=5190820
null

