dll中可以输出变量吗? delphi中如何做,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ……//参考如下代码~~library Project1;uses SysUtils, Classes;{$R *.res}var vMyValue: Integer;function GetMyValue: Integer; stdcall;begin Result := vMyValue;end;procedure SetMyValue(mValue: Integer); stdcall;begin vMyValue := mValue;end;exports GetMyValue, SetMyValue;beginend. procedure SetMyValue(Var mValue: Integer); stdcall; 字符型变量需定义成“Var Str : Pchar” 你要把握的是:dll 就是一个含数或过程 请教楼上:DLLzho中的地址空间和应用程序的地址空间在一个空间吗 dll应该在一个进程空间。谢谢各位的帮忙! delphi property的问题 select 的as什么用? 如何创建表的时候用表拷贝 客户机索引的问题!·!! real怎么转变为string? DELPHI6 字體顯示﹖﹖ 怎样把字符串中的信息转换为程序代码??? 急!!!急!!!关于最小化到托盘的问题! 在delphi中,调用Dll后,能显示窗体,但一点击任意键就会关闭,这是什么原因? 电子地图的加密问题????? 巨难算法,高手来瞧瞧…… 用frreport的showreport方法实现打印没有反应
//参考如下代码~~library Project1;uses
SysUtils,
Classes;{$R *.res}var
vMyValue: Integer;function GetMyValue: Integer; stdcall;
begin
Result := vMyValue;
end;procedure SetMyValue(mValue: Integer); stdcall;
begin
vMyValue := mValue;
end;exports
GetMyValue,
SetMyValue;beginend.
procedure SetMyValue(Var mValue: Integer); stdcall;