S
sandeep
Hello friends
I have a Java application and I need to use a C function for efficiency.
My Java text book says I should declare the function as native and use a
semicolon with no body.
But it doesn't explain how to associate this function to a C function.
Also how do the type map to C types? Eg primitive types are Fixed Width
in Java but in theory could vary in C. And how would a Java class carry
across to C?
I am using Eclipse on Windows ME and BorLand C if it is relevant.
Thanks for your help ASAP.
I have a Java application and I need to use a C function for efficiency.
My Java text book says I should declare the function as native and use a
semicolon with no body.
But it doesn't explain how to associate this function to a C function.
Also how do the type map to C types? Eg primitive types are Fixed Width
in Java but in theory could vary in C. And how would a Java class carry
across to C?
I am using Eclipse on Windows ME and BorLand C if it is relevant.
Thanks for your help ASAP.