Answer the question
In order to leave comments, you need to log in
How to pass unsigned int to JNI?
Hello.
I have a library written in C (not by me). It has a method:
HRESULT ZR_Initialize(
UINT nFlags
);
[DllImport(ZrDllName, CallingConvention = CallingConvention.StdCall, EntryPoint = "ZR_Initialize")]
public static extern int ZR_Initialize(UInt32 nFlags);
public class ZReader {
static {
System.loadLibrary("ZReader");
}
native static public int ZR_Initialize(int Flags);
}
Answer the question
In order to leave comments, you need to log in
if the library was not specifically written for JNI, then nothing will come of it. But it will work if you use JNA
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question