Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

cpp between c# and java - JNI

$
0
0

Hi,

In a JNI environment, I have a simple java program that calls cpp program which calls c# which returns a Type object back to cpp. Now, I need to return this object back tojava.

here is my cpp function:

JNIEXPORT jobject JNICALL Java_Test1_StaticCall(JNIEnv *env, jclass cls)
{
return CSharpHelloWorld::StaticCall();
}

CSharpHelloWorld::StaticCall() is the c# method that returns the Type object to the cpp function.

How can I return this object back from cpp to java?

Thank you



Viewing all articles
Browse latest Browse all 15302

Trending Articles