牧
牧羊狐
Unregistered / Unconfirmed
GUEST, unregistred user!
我这样调用的
……
type
TGetPwd = procedure(const InStr: WideString;
out PassStr: OleVariant);
……
procedure TFrmMain.BtnOkClick(Sender: TObject);
var
GetPwd: TGetPwd;
Handle: THandle;
begin
Handle := LoadLibrary('Password.dll');
if Handle <> 0 then
begin
@GetPwd := GetProcAddress(Handle, 'GetPassword');
if @GetPwd <> nil then
begin
showmessage('OK');
end;
end;
end;
结果总是跳过 showmessage('OK');
可这个dll明明有那个函数!!
……
type
TGetPwd = procedure(const InStr: WideString;
out PassStr: OleVariant);
……
procedure TFrmMain.BtnOkClick(Sender: TObject);
var
GetPwd: TGetPwd;
Handle: THandle;
begin
Handle := LoadLibrary('Password.dll');
if Handle <> 0 then
begin
@GetPwd := GetProcAddress(Handle, 'GetPassword');
if @GetPwd <> nil then
begin
showmessage('OK');
end;
end;
end;
结果总是跳过 showmessage('OK');
可这个dll明明有那个函数!!