📄 udllinterface.pas
字号:
unit udllinterface;
interface
uses uClass, Windows, Dialogs;
type TProcGetName = function :PChar; stdcall;
{上层接口}
procedure getteamname(var team1,team2:string);
procedure initRobotlibary;
{下层接口}
var
getteamname1 : TProcGetName;
getteamname2 : TProcGetName;
function teamAname : pchar; external 'teamdlla.dll' name 'teamname';
function teamBname : pchar; external 'teamdllb.dll' name 'teamname';
implementation
uses uMain;
procedure initRobotlibary;
begin
end;
procedure getteamname(var team1,team2:string);
begin
team1 := teamAname;
team2 := teamBname;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -