开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜