请教大虾:
我将Dll文件放在程序所在目录的一个子目录下,而不在系统目录或程序所在主目录下,用delphi如何调用这些Dll文件的函数?同时这些Dll文件也需要互相调用对方的函数。
我将Dll文件放在程序所在目录的一个子目录下,而不在系统目录或程序所在主目录下,用delphi如何调用这些Dll文件的函数?同时这些Dll文件也需要互相调用对方的函数。
解决方案 »
- 一个关于数据库查询问题
- 请问这个错误怎样处理EVariantTypeCastError?
- 真邪门啊:这条语句错了吗? select * from t_spjcxx where spdm like :a or spmc like :a or gg like :a
- RS485网络连线问题
- 一个多文档问题————在线等待!!!!
- 怎样在程序内执行DOS的内部命令?WINEXEC好象不行啊。
- 这个文本文件如何排序
- 请教大家一个简单的问题
- 有哪位高手用过IDPOP,IPSMTP来收发电子邮件(并且要能收发附件)?
- 怎么读出paradox里的数据,把数据写进excel里?
- 怎么实现多行 空的DBGRID表格 在运行后
- 大家好:需求分析!~~~~
var
s1,s2,dllpath:string;
i:Longint;
hInstDLL:THandle;
pms1:TMatchSearcher ;
begin
s1:=trim(edit2.Text );
listbox2.Items.Clear ;
hasfenxip:=false;dllpath:=ExtractFilePath(Application.ExeName )+'\新建文件夹\tongpeidll.dll';
hInstDLL := LoadLibrary(PChar(dllpath) );
if(hInstDLL =0) then exit;
@pms1 :=GetProcAddress(hInstDLL ,'MatchSearcher');
if (@pms1=nil) then exit;for i:=0 to Memo1.Lines.Count -1 do
begin
s2:=Memo1.Lines.Strings[i];
if pms1(PChar(s1),PChar(s2)) then
// if MatchSearcher(PChar(s1),PChar(s2)) then
begin
listbox2.Items.Add(s2);
end;
end;
if (hInstDLL<>0) then FreeLibrary(hInstDLL);
end;