dlls文件要用到调用程序中的edit1.text中的内容,那么怎么把调用程序中的edit1.text中的内容传递给dlls文件? dlls文件要用到被调用程序中的edit1.text中的内容,那么怎么把调用程序中的edit1.text中的内容传递给dlls文件?那位高手能帮一下,快崩溃了!最好能给个具体的例子? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 声明Procedure test(s:Pchar); stdcall; external 'your.dll';调用test(PChar(edit1.text); Type TMyProc = Procedure (Param:Pchar ) ;stdcall;Var MyProc: TMyProc; handle: tHandle;Begintry handle := LoadLibrary(PChar('your.dll')); if handle <> 0 then @MyProc := GetProcAddress(handle, PChar('test')); if Assigned(MyProc) then MyProc(Pchar(edit1.text)); else RaiseLastWin32Error;finally FreeLibrary(handle); end; 如何实现单击comobox就会下拉 請問一個有關Qreport中賦值的問題 客户机怎样备份服务器的SQL Server数据库 招 熟手delphi程序员(深圳福田),待遇面议 请问谁有图像模型匹配的源程序吗,可以给我发一份吗?急需,来不及自己做了,请各位帮帮忙哦!! 关于类似p2p传输 问一个可笑的问题。希望能得到回复 谁有TDock97、TToolbar97、TToolbarButton97、TToolbarSep97控件,急用!! 为什么这样查不到数据?代码如下: Error opening serial port 怎么得到卡巴的按钮的类名和标题? delphi中文字符串比较
Procedure test(s:Pchar); stdcall; external 'your.dll';
调用
test(PChar(edit1.text);
MyProc: TMyProc;
handle: tHandle;
Begin
try
handle := LoadLibrary(PChar('your.dll'));
if handle <> 0 then
@MyProc := GetProcAddress(handle, PChar('test'));
if Assigned(MyProc) then
MyProc(Pchar(edit1.text));
else
RaiseLastWin32Error;
finally
FreeLibrary(handle);
end;