关于网友提出的“ 加载动态链接库问题”问题疑问,本网通过在网上对“ 加载动态链接库问题”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题: 加载动态链接库问题
描述: 我动态加载DLL,如下:
var
hInst: THandle;
ShowAccountInformationForm: procedure; stdcall;
begin
hInst := LoadLibrary('SIHisInterface.dll');
if hInst <= 0 then Exit;
try
ShowAccountInformationForm := GetProcAddress(hInst, 'ShowAccountInformationForm');
if Assigned(ShowAccountInformationForm) then Exit; //到这里时退出,不知为什么???
ShowAccountInformationForm;
finally
FreeLibrary(hInst);
end;
end;
解决方案1: 我来了,呵呵
怎么解决的?
assigned 前面加not?
以上介绍了“ 加载动态链接库问题”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3592965.html