views:

189

answers:

1

Hi, 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* y), 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:-)

A: 

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

Scott Smith