I tried extending the StdCallLibrary instead and that did not work. However,
I have been able to successfully build a solution using JNI. Thanks for all
your help.
- born2Java
From: Wayne Meissner <wmei...@gmail.com>
Reply-To: use...@jna.dev.java.net
To: use...@jna.dev.java.net
Subject: Re: [jna-users] Re: Problem with JNA to access vb DLL
Date: Thu, 23 Aug 2007 14:31:15 +1000
I'm not familiar with win32, but you might have to make your interface
extends StdCallLibrary instead of just Library
Kay W wrote:
I was able to solve my initial problem by making the INSTANCE variable
static.
However, I have encountered a new problem (this is the same exception I
ran into while attempting a JNI implementation). Any assistance would be
helpful!
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot locate
function 'Connect'
at
com.sun.jna.NativeLibrary.getFunctionAddress(NativeLibrary.java:191)
at com.sun.jna.Function.<init>(Function.java:103)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:178)
at com.sun.jna.Library$Handler.invoke(Library.java:140)
at $Proxy0.Connect(Unknown Source)
at rda2.rda2.main(rda2.java:24)
Thanks!
born2Java
_________________________________________________________________
See what youre getting into
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
_________________________________________________________________
Find a local pizza place, movie theater, and more
http://maps.live.com/default.aspx?v=2&ss=yp.bars~yp.pizza~yp.movie%20theater&cp=42.358996~-71.056691&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=950607&encType=1&FORM=MGAC01