R
rover
Hi,
I've been reading about JNI and shared stubs at
http://java.sun.com/docs/books/jni/html/jniTOC.html
However, when i try to use the class "CFunction" (see 9.4.3 @ url) , my
compiler (IntelliJ) says it cannot find the class.
I did find a jnistb10.zip , containing CFunc, CMalloc, CPtr, and the C
code for "disp.dll". However, this zip contains "CFunc" instead of
"CFunction" ! This is fine for wrapping a simple C calling convention
function like "atol" (this example works with CFunc) , but i want to
wrap some "stdcall" win api functions. With CFunc i get an access
violation, probally due to the fact its not a C but a stdcall function.
So i've been searching for the new and improved classes, namely
CFunction , but unfortunally i cannot find it anywhere. Strange how it
seems to be part of the JVM since 1.2 , but just doesnt seem to be there.
Anyone who can help me ?
Thanks,
Rover
I've been reading about JNI and shared stubs at
http://java.sun.com/docs/books/jni/html/jniTOC.html
However, when i try to use the class "CFunction" (see 9.4.3 @ url) , my
compiler (IntelliJ) says it cannot find the class.
I did find a jnistb10.zip , containing CFunc, CMalloc, CPtr, and the C
code for "disp.dll". However, this zip contains "CFunc" instead of
"CFunction" ! This is fine for wrapping a simple C calling convention
function like "atol" (this example works with CFunc) , but i want to
wrap some "stdcall" win api functions. With CFunc i get an access
violation, probally due to the fact its not a C but a stdcall function.
So i've been searching for the new and improved classes, namely
CFunction , but unfortunally i cannot find it anywhere. Strange how it
seems to be part of the JVM since 1.2 , but just doesnt seem to be there.
Anyone who can help me ?
Thanks,
Rover