帮忙看一下下面这段代码,我这样调用DLL里的函数对不对??????
。
。
。implementation{$R *.DFM}
function SEH_InitialSession(HANDLE:Thandle;num1:integer;usertder:pchar;password:pchar;num2:integer;num3:integer;rootcert:pchar;unkonw:pchar):integer;cdecl external 'SafeEngine.dll';procedure TForm1.Button1Click(Sender: TObject);
var
path:string;
cert:string;
hdle:thandle;
begin
path:=extractfilepath(paramstr(0));
if SEH_InitialSession(hdle,2,'D:\wangjian\oracle青浦\CA LICENSE\casureproject\UserKey.key','dd2d8793',0,2,'D:\wangjian\oracle青浦\CA LICENSE\casureproject\rootcert.der','')<>0 then
begin
///terminate application
end;
end;
。
。
。implementation{$R *.DFM}
function SEH_InitialSession(HANDLE:Thandle;num1:integer;usertder:pchar;password:pchar;num2:integer;num3:integer;rootcert:pchar;unkonw:pchar):integer;cdecl external 'SafeEngine.dll';procedure TForm1.Button1Click(Sender: TObject);
var
path:string;
cert:string;
hdle:thandle;
begin
path:=extractfilepath(paramstr(0));
if SEH_InitialSession(hdle,2,'D:\wangjian\oracle青浦\CA LICENSE\casureproject\UserKey.key','dd2d8793',0,2,'D:\wangjian\oracle青浦\CA LICENSE\casureproject\rootcert.der','')<>0 then
begin
///terminate application
end;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货