?
=?ISO-8859-1?Q?Thomas_G=E4rtner?=
Hi,
we are using Java JNI to call C++ methods from a java application. Java
is calling a get method to get data, the type of this data is variable
(int, double, string)
Is the JNI jvalue (union) datatype the right usage for this? For example:
JNIEXPORT void JNICALL getFromCppToJava(JNIEnv *env, jvalue var)
{
// i keep it very simple
var.jint = 5,
}
How is this resolved in java? How is the access to this union?
Thanks
we are using Java JNI to call C++ methods from a java application. Java
is calling a get method to get data, the type of this data is variable
(int, double, string)
Is the JNI jvalue (union) datatype the right usage for this? For example:
JNIEXPORT void JNICALL getFromCppToJava(JNIEnv *env, jvalue var)
{
// i keep it very simple
var.jint = 5,
}
How is this resolved in java? How is the access to this union?
Thanks