Home > database >  Pb how to invoke Java write a DLL
Pb how to invoke Java write a DLL

Time:10-08

Customer gave a Java write DLL, let call the inside of the encryption method, the trouble is, they give the invocation of the example, (written in cs), is to call the methods in the DLL in a class, then PB how to call? To search on the net is a function call, also didn't say how to call to the class involved, the following is written to the CS example
Try
{
CredentialEntity CredentialEntity=CredentialUtil. GetCredential (arg);
String username=credentialEntity. Username;
}
The catch (CredentialException e)
{
String code=the ode of e.c. with our fabrication:
MessageBox. Show (e.M essage);
}
This point of view should be CredentialUtil GetCredential static function is encryption methods, to return to the CredentialEntity type is, don't know how to call this structure, was simply can't call a function, don't say it to this problem

CodePudding user response:

Haven't tried, but should be all the DLL, and call statement to use first
  • Related