Nevermind, cygwin failed but tortoise worked.
Ok i decorated all my functions as __stdcall and changed my interface back
to extend StdCallLibrary. Now I need to upgrade to trunk right?
The svn server is giving me a 400 error
$ svn checkout https://jna.dev.java.net/svn/jna/trunk jna
svn: REPORT request failed on '/svn/jna/!svn/vcc/default'
svn: REPORT of '/svn/jna/!svn/vcc/default': 400 Bad Request (
https://jna.dev.jav
a.net)
Can i get a binary of trunk from anywhere?
On 6/14/07, Timothy Wall <twal...@dev.java.net> wrote:
On Jun 14, 2007, at 2:39 PM, Daniel Horowitz wrote:
Some more info that might clear things up -
I am compiling my dll with VS2005 and my project settings are
Calling convention - __cdecl
Compile as - C++
Through reading the forms i tried __stdcall but then jna cant find
any of my functions.
You have to either include undecorated exports (using gcc's --add-
stdcall-alias or a DEF file) or update to the latest JNA on the
trunk, which knows how to look for stdcall-decorated names based on
the java interface.
Then I tried compile as C, and the compiler complained about my
extern definitions being strings (very strange).
If you compile as C, you need to omit the 'extern "C"' bits, which
are C++-only syntax. Typically header files surround C++ bits with
#ifdef __cplusplus (see jna/native/dispatch.h for an example).