How do I call a C function which takes a pointer as parameter from my Java program?

Alexander Krapf

You need to store the pointer as an int or long on the Java side. You pass it to the native method as a primitive type and cast it to the appropriate pointer type once you're in C/C++.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact