Mapping const char** to Java type with JNA
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use a C++ library in Java with JNA. In the header file of the library I have the following method declaration: extern "C" void foo(const char** bar); The paramterer bar should be passed to foo empty, and foo vill assign it a value that I want to retreive in Java. How should the corresponding Java method declaration be set up (e.g. what Java type should I map bar to), and how can I use it? I have tried the following Java declarations: void foo(String bar); void foo(String[] bar); void foo(Pointer bar); They all result in the