⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udllinterface.pas

📁 机器人足球赛比赛平台源代码
💻 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 + -