Hi Lazarus Tutors,
Newbie here (please consider). I'm using the latest Lazarus version (32bit) and am trying to make a DLL that I want to use with MetaTrader.
It is a most basic DLL, just 1 function like this:
library firstdll;
{$mode objfpc}{$H+}
uses
sysutils;
function foo(y: unicodestring; z: integer): PChar; stdcall;
var
s : unicodestring;
begin
s := y + ' '+ IntToStr(z);
result := PChar(s);
end;
exports
foo;
begin
end.
When I use it in the MT then these can be found as dependencies (attached picture).
My question: where those functions come from (I was only using sysutils)? Why are those functions red? I think they come from the sysutils.
I think my "foo" function is OK, because it is green (and works well). How can I make the others as well to green (or delete them if they are unnecessary)?
(Please ignore the difference between code/picture of the foo function.)
Thanks