Home > Back-end >  Delphi call c # write a DLL
Delphi call c # write a DLL

Time:09-28

I wrote a DLL, in c # is roughly such
The namespace OutStorage
{
Public class CK
{

Public static String GetCk (String SSN) {
Console. WriteLine (SSN).
}
}
}

Delphi call GetCk (SSN) this can't call it, a great god help solve, I don't know anything about Delphi,

CodePudding user response:

Pray god help, their top a!!!!!

CodePudding user response:

Pray god help, their top a!!!!!

CodePudding user response:

Pray god help, their top a!!!!!

CodePudding user response:

 
USES the
Windows, Forms;

Var
HDll: THandle;

GetCK: function (SSN: pChar) : string; Stdcall;

Procedure LoadDLL;
The begin
HDll:=LoadLibrary (' XXX. DLL);

GetCK:=GetProcAddress call (hDll, 'GetCK');
The end;

  • Related