uses
SysUtils,
Classes,
Menus,
IServices in 'IServices.pas';
{$R *.res}
procedure addMenu(var ise:IGTServices); stdcall;
var
aser:IGTServices;
aItem:TMenuitem;
MM:TMainMenu;
begin
aser:=ise;
MM:=aser.MainMenu;
aItem:=TMenuItem.Create(mm);
aItem.Caption:='this is a menu';
MM.Items.Add(aItem);
end;