Y
yansh
Unregistered / Unconfirmed
GUEST, unregistred user!
[red]DLL声明如下:
function GetIdeDiskSerialNumber : pchar;stdcall;
调用声明如下:
Private Declare Function GetIdeDiskSerialNumber Lib _
"HardDiskSN.dll" () As Long
调用如下:
Private Sub Command1_Click()
ss = GetIdeDiskSerialNumber
Label1.Caption = ss
End Sub
得到的值不对,而在delphi下一切正常!
procedure TForm1.Button1Click(Sender: TObject);
var
ss:string;
begin
ss:=GetIdeDiskSerialNumber;
label1.Caption :=trim(ss);
end;
别告诉我用delphi调用。我做这个dll是给一位朋友用的。他只会VB.
100分吧[][/red]
function GetIdeDiskSerialNumber : pchar;stdcall;
调用声明如下:
Private Declare Function GetIdeDiskSerialNumber Lib _
"HardDiskSN.dll" () As Long
调用如下:
Private Sub Command1_Click()
ss = GetIdeDiskSerialNumber
Label1.Caption = ss
End Sub
得到的值不对,而在delphi下一切正常!
procedure TForm1.Button1Click(Sender: TObject);
var
ss:string;
begin
ss:=GetIdeDiskSerialNumber;
label1.Caption :=trim(ss);
end;
别告诉我用delphi调用。我做这个dll是给一位朋友用的。他只会VB.
100分吧[][/red]