search for: helloimpl_main

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

2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...d at the WineLib functions: hDLL = LoadLibraryA("HelloImpl.dll") or pFunc=(void*)GetProcAddress(hDLL,"?sayHello@@YAXPAD at Z"); The below is some my code: 1. Run winedump from window dll winedump spec -f dump HelloImpl.dll -I "*.h" 2. Add Java Native Interface to HelloImpl_main.c and make a Share Object lib (so) winegcc HelloImpl.spec -o libhelloimpl.so HelloImpl_main.c -shared -fpic -I/usr/java/jdk1.5.0_12/include -I/usr/java/jdk1.5.0_12/include/linux 3. From JAVA call to load so lib (I can load and link to the function) 4.Load so and call the function It can call BUT...
2008 Dec 15
0
wine: could not load and Bad EXE format for
...3 unique (ordinal base = 1) Done dumping HelloImpl.dll Export 1 - '?printfString@@YAXPAD at Z' ... [OK] Export 2 - '?sayHello@@YAXPAD at Z' ... [OK] 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...