Well, there are different, so I'll try to build jnidispatch.dll with Visual
Studio 2008SP1 and I will see.
I have some difficulties to build the library because of linking dependencies :
From: lem_...@hotmail.com
To: use...@jna.dev.java.net
Date: Thu, 4 Jun 2009 13:05:05 +0000
Subject: RE: [jna-users] call to a native Win32 function behave randomly
Someone else had some difficulty with using different versions of
MSVCRT. Vanilla jnidispatch.dll is built against msvcrt.dll, which is
probably not what you want, although I don't know why command-line
versus webstart would affect whether it works or not. Use depends.exe
on jnidispatch.dll to see whether it refers to the MSVCRT that you want.
Check java.library.path in the two instances (cmd vs webstart). I bet
it's different. You'll need to track down what else is different
between the two launch scenarios.
P.S. : the
----------> Web Start
C:\Program Files\Java\jre6\bin
;.
;C:\WINDOWS\Sun\Java\bin
;C:\WINDOWS\system32
;C:\WINDOWS
;C:\Program Files\Java\jre6\bin
;C:\Program Files\Internet Explorer
;
;C:\WINDOWS\system32
;C:\WINDOWS
;C:\WINDOWS\System32\Wbem
;"C:\Program Files\Java\jre6\bin"
----------> Command Line
C:\WINDOWS\system32
;.
;C:\WINDOWS\Sun\Java\bin
;C:\WINDOWS\system32
;C:\WINDOWS
;C:\WINDOWS\system32
;C:\WINDOWS
;C:\WINDOWS\System32\Wbem
Votre correspondant a choisi Hotmail et profite d'un stockage quasiment
illimité. Créez un compte Hotmail gratuitement !
_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx