JNA problem with char** (in dll)
ok it is 'easy' to make jna wrapper solution for mapping exported functions within dll using jna:
long f1(int x), just int
long f2(char* 开发者_如何学Cy), just char[]
but how to deal with long f3(char** z)
?
I need f3
's result(long) as well as z
value on java side.
Please don't say cpp code should be rewritten to avoid this:-)
This is a "pointer to a character pointer" (similar to a BSTR). You may have to derive your own class from com.sun.jna.PointerType
精彩评论