search for: helloimpl_global_sayhello_2

Displaying 2 results from an estimated 2 matches for "helloimpl_global_sayhello_2".

2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...so lib (I can load and link to the function) 4.Load so and call the function It can call BUT it will have 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 Ge...
2008 Dec 15
0
wine: could not load and Bad EXE format for
...Export 3 - '?writeNUM@@YAXH at Z' ... [OK] 3. Winegcc to make so (Share Object) winegcc HelloImpl.spec -o libhelloimpl HelloImpl_main.c -shared -fPIC 4. write a c main function to try to call the so #include "HelloImpl_dll.h" int main(int argc, char **arg){ char sText[254]; HELLOIMPL_global_sayHello_2(sText); printf("Huu Tri %s", sText); return 0; } 5. Build the main funciton with winegcc and link to so lib winegcc -o maintest main.c -L. -lhelloimpl.dll Build successful BUT when trying to run ./maintest It show the problem: wine: could not load L"Z:\\root\\huutri\\maintest...