DLL with JNA error looking up function?
- by Thomas Nappo
This is the code in my DLL (C#): http://pastebin.com/Uirn0z2V
I have the DLL built and inside both the JDK bin folder along with inside my project.
This is the Java code I am using to access with JNA: http://pastebin.com/NffpaEp8
Yet when I run my Java code this happens:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'Run': The specified procedure could not be found.
at com.sun.jna.Function.<init>(Function.java:179)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:391)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:371)
at com.sun.jna.Library$Handler.invoke(Library.java:205)
at $Proxy0.Run(Unknown Source)
at RunPETest.main(RunPETest.java:18)
I have no experience with using JNA with custom DLLs or creating DLLs with C#... so I'm stuck here.