C
chhp_tiger
Unregistered / Unconfirmed
GUEST, unregistred user!
我現在想用dephi連接SAP,然後調用sap資料,我使用了SAPLogonControl來連接,但是總是報錯,不知沈麼原因,請高手賜教,說明:我的應用服務器指定好了,username,client,systemid都指定了.錯誤提示為Access violation at address 0045397F in module 'Project1.exe'
代碼如下:
uses SAPLogonCtrl_TLB,ExtCtrls,LoeCtrls
var
Connection:variant;
procedure TForm1.SAPLogonControl1Click(Sender:TObject);
begin
Connection:=SAPLogonControl1.NewConncetion;
if Connection.LogOn(0,false)=true then
showmessage('logon ok');
end;
代碼如下:
uses SAPLogonCtrl_TLB,ExtCtrls,LoeCtrls
var
Connection:variant;
procedure TForm1.SAPLogonControl1Click(Sender:TObject);
begin
Connection:=SAPLogonControl1.NewConncetion;
if Connection.LogOn(0,false)=true then
showmessage('logon ok');
end;