type
TGetUserInfo =Function (sqltxt:pChar;Result:pChar):integer;Stdcall;
Callproc();
var
DLLHand:THandle;
ResultStr:String;
GetUserInfo:TGetUserInfo ;
begin
DLLHand := LoadLibrary('DLL.dll');
if DLLHand<>nil then
@GetUserInfo := GetProcAddress(DLLHand,'GetUserInfo');
if @GetUserInfo <> nil then
GetUserInfo('Kao',pchar(ResultStr));
ResultStr:=String(ResultStr); // 好像要转换下才能有
ShowMessage(ResultStr);
end;
type
Function GetUserInfo(sqltxt:pChar;Result:pChar):integer;Stdcall;
Callproc();
var
DLLHand:THandle;
ResultStr:String;
begin
DLLHand := LoadLibrary('DLL.dll');
if DLLHand<>nil then
@GetUserInfo := GetProcAddress(DLLHand,'GetUserInfo');
if @GetUserInfo <> nil then
GetUserInfo('Kao',pchar(ResultStr));
ResultStr:=String(ResultStr); // 好像要转换下才能有
ShowMessage(ResultStr);
end;