S
simplicity
Why do the examples always have to be completely disconnected from the
reality?
I am trying to create a simple prototype which interfaces with the
native DLL using JNA. So, following the JNA tutorial, I specify the
native function as
int func(int)
just as it is in the C++ header. When I run the java program it fails
with "module not found" exception.
After a bit of digging inside the DLL I see that it rightly so: my
function is actually _func@0 rather than func. OK, so back to Java
code and change the the native to what it really is.
Syntax error!!! Java will not take _func@0 as a function name. Because
of "@", I guess.
So, here is my "trivial question": How can I put this name with "@" to
allow Java to digest it without complaints?
reality?
I am trying to create a simple prototype which interfaces with the
native DLL using JNA. So, following the JNA tutorial, I specify the
native function as
int func(int)
just as it is in the C++ header. When I run the java program it fails
with "module not found" exception.
After a bit of digging inside the DLL I see that it rightly so: my
function is actually _func@0 rather than func. OK, so back to Java
code and change the the native to what it really is.
Syntax error!!! Java will not take _func@0 as a function name. Because
of "@", I guess.
So, here is my "trivial question": How can I put this name with "@" to
allow Java to digest it without complaints?