急需动态加载DLL的方法 动太加载比较复杂呀 有没有比较简单方法 我想让我的程序 执行的 时候 当需要的一些DLL不存在时也不会报错 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我测试没有成功呀 theHandle:=Loadlibrary('project1.dll');PFunc:=GetProcAddress(theHandle,'xx' );还要做什么 才能执行我的 DLL 中的 XX 函数 if pfunc=nil then showmessage('error') 可以自己写个方法的,用来调用这两个函数比如:GetDllFunction(dllName, funcName: String) theHandle:=Loadlibrary('project1.dll');PFunc:=GetProcAddress(theHandle,'xx' );try if theHandel = 0 then raise EDLLLoadError.create('unable to load dll'); PFunc := GetProcAddress(theHandle,'xx' );finally FreeLibrary(LibHandle); end;end; http://www.swissdelphicenter.ch/en/showcode.php?id=1745 rzgroupbar的问题 使用NMFTP和IdFtp如何传输超过2G的文件。 用TIdFtp控件做的ftp客户端,怎么才能控制下载速度? 请大家帮忙 点击托盘图标,怎么知道主窗体被其他窗体遮住了,从而前端显示,像金山词霸一样,谢谢 快速查找问题,在线等,急急急 真的是常识问题,烦劳给我看看 请yczyk有鬼进来接分!感谢你的帮忙! 高手们帮忙解决调用应用服务器程序死机问题,有高分相送! 如何取得isapi当前*.dll所在的路径? 请问怎么禁止EXE程序的执行 StringGrid控件如何才能实现按住CTRL键,多选?
theHandle:=Loadlibrary('project1.dll');
PFunc:=GetProcAddress(theHandle,'xx' );
还要做什么 才能执行我的 DLL 中的 XX 函数
比如:GetDllFunction(dllName, funcName: String)
PFunc:=GetProcAddress(theHandle,'xx' );
try
if theHandel = 0 then
raise EDLLLoadError.create('unable to load dll');
PFunc := GetProcAddress(theHandle,'xx' );
finally
FreeLibrary(LibHandle);
end;
end;