Processes explicitly linking to a DLL call GetProcAddress to obtain the address of an exported function in the DLL. You use the returned function pointer to call the DLL function. GetProcAddress takes as parameters the DLL module handle (returned by either LoadLibrary, AfxLoadLibrary, or GetModuleHandle), and either the name of the function you want to call or the function's export ordinal.
Because you are calling the DLL function through a pointer and there is no compile-time type checking, make sure that the parameters to the function are correct so that you do not overstep the memory allocated on the stack and cause an access violation. One way to ensure type safety is to look at the function prototypes of the exported functions and create matching typedefs for the function pointers. For example:
Ben bang dat je dus toch een verkeerde aanroep doet waardoor je die pagefaults krijgt. Heb hier geen VCC bij dehand, dus kan het niet checken, sorry.
Die functie fout moet je denk ik in die typedef zoeken, je wilt wel een return, maar je definitie zegt void. Bovendien moet je denk ik ook #include <jni.h> erbij zetten om (JNIEnv, jobject); te kunnen gebruiken.
[stijl opmerking]
Verder zou ik het dus absoluut geen "hint" noemen, de h (kleine letter staat voor Handle, en de rest van de naam voor het soort object waar die handle naar verwijst, dus in dit geval lijkt het een handle naar een int.
[/stijl opmerking]