Displaying 1 result from an estimated 1 matches for "retmess".
Did you mean:
reames
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...ave crashed at the wine lib functions.
JNIEXPORT jstring JNICALL Java_HelloImpl_sayHello
(JNIEnv *jEvn, jobject jObj){
printf("sayHello [BEGIN]\n");
char sText[255];
HELLOIMPL_global_sayHello_2(sText);
printf("sayHello [END CALL]\n");
jstring retmess;
retmess = (*jEvn)->NewStringUTF(jEvn, sText);
return retmess;
}
Crashed at: HELLOIMPL_global_sayHello_2(sText);
I also try with other way, that I have write a new so that wrapped WineLib so by using GetProcAddress, all the function work well with a C main program, BUT it will aslo ha...