On Sun, 2008-03-02 at 09:11 -0500, Timothy Wall wrote:
1) compile a stupid C library that just prints "hello world" and
that's
one file.
Not a bad suggestion, I've added a hello, world snippet to the main
page as the first example. Hopefully the varargs isn't too advanced
for newbies :)
And if it's not possible to make a single Java file to do this, then
the
"howto" needs to say "create a file with this in, then create one with
this in". This stops errors like "class JNANoddyLib is declared public
so needs to be in its own file" appearing. But maybe JNANoddyLib
didn't
*need* to be public. I don't know enough to say.
Here's something I whipped up with someone who knows Java (but not JNA)
about a simple, self-contained C library to test JNA development
against.
It (IMO) is a replacement from the current documentation introducing JNA
under
https://jna.dev.java.net/
So I can't really barge in and wipe that out. Not at least until I get a
chance to find out if anyone else agrees. Heck, even if my version isn't
used but someone implements the same simple process, that's enough.
So I've attached the documentation that I think describes a better
tutorial example than the one currently there (windows only, snippets
taken out of context and so on is confusing if you aren't already au
fait with JNA somewhat).
If you think "no way" please tell me why. If you think "I think it'll
work", let me know.
Ta.