Good afternoon, I work with JNA connected via the interface to the .dll library, but when I call it, the method writes
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'connect': The specified procedure was not found.
but it is there is an entry in the library itself
function Connect(ChannelName: BSTR; Flags: I4; Username: BSTR; Password: BSTR): I4; stdcall; Here is my working code
public static void main(String[] args) throws InterruptedException, IOException { ClientW ClientW = (ClientW) Native.loadLibrary("spn", ClientW.class); System.out.println("connect = " +ClientW.Сonnect(nuberChanell,SPR_CHANNEL_HARDNAME,null,null)); } public interface ClientW extends Library { int Connect(int flags, java.lang.String username, java.lang.String password); } What doesn't he like?