您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Delphi >> 加载动态链接库问题

加载动态链接库问题

来源:网络整理     时间:2016/8/25 23:06:38     关键词:

关于网友提出的“ 加载动态链接库问题”问题疑问,本网通过在网上对“ 加载动态链接库问题”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 加载动态链接库问题
描述:

我动态加载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

相关图片

相关文章