开发者

JNA problem with char** (in dll)

开发者 https://www.devze.com 2022-12-21 11:14 出处:网络
ok it is \'easy\' to make jna wrapper solution for mapping exported functions within dll using jna: long f1(int x), just int

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

精彩评论

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

关注公众号