|
-
July 23rd, 1999, 10:15 AM
#1
How to import a DLL
I have a DLL (no graphics, just pure functions with API calls) called login.dll (win32 created with VC++ 6.0) with one exported function, BOOL SSPLogonUser(LPTSTR, LPTSTR, LPTSTR). I can use this dll with VJ++ 6.0, but I don't want to do that.
I want to use this DLL in sun's JDK1.2, but I can't. Why???
I always get this message, whatever method (load or loadlibrary) I use:
Exception in thread "main" java.lang.UnsatisfiedLinkError: SSPLogonUser
at java.simple.Validation.main(Validation.java:33)
I this a bugg in java, am I not supposed to be able to use a win32 dll together with java 1.2?
Does Java 1.2 have some requirements on the "looks" of a DLL created for win32?
...
private native boolean SSPLogonUser(StringBuffer domain, StringBuffer user,StringBuffer password);
static{
Runtime.getRuntime().load("d:\\classes\\ login.dll");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|