Home > Back-end >  On Java call DLL control problem... O discuss...
On Java call DLL control problem... O discuss...

Time:10-10

first show, the movement of this DLL control inside the main method is an interface, the colleague use. NET technology called, will pop up interface.. Like Java interface at the front desk of the C/S development in almost... Now want to use Java technology to call DLL and have the same effect, also studied the JNI and JNA before, but always error can not find a file, or can't find the interface and the like, want to ask next everybody now, how should call correctly, is really a big nod ~ ~

CodePudding user response:


Attached on the.net call control code...

CodePudding user response:

Capture some hasty... In the last sentence
Communalsettings. _LoginInfo=Communalsettings. _newLogin. GetLoginInfo ();

CodePudding user response:

What do you use? Awt or Swing or JFX? But whatever it is, the bottom is called the win32 open a Windows window, if you like. Net call display, estimated only by win32 API add this control directly to the window, and then you can use the navtive calls, returns the contents of the window to use Java,

CodePudding user response:

Thank you very much!! I use the Swing... General meaning to understand, but the win32 API and how through navtive calls, returned to the Java is not, on the above. NET code didn't quite understand, I need to call any method, and the return value don't know what to write

CodePudding user response:

The
hey hey bazaar hey reference 4 floor response:
thank you very much!! I use the Swing... General meaning to understand, but the win32 API and how through navtive calls, returned to the Java is not, on the above. NET code didn't quite understand, I need to call any method, and the return value don't know what to write


Seems to be a managed code, cannot be directly used in Java, you should be into the GetLoginInfo seen is how to implement in the (), and then put the method code into Java,
  • Related