I have added a writeln to my dll
procedure PRINT(s:pchar);
begin
writeln(ansistring(s));
end;
But it is so trivial, no need to alter my previous post.
However to create writeln as a variadic procedure, to accept different data types, seperated by commas, is not so trivial, in fact I can see no examples, references, or help about pascal variadic procedures.
Maybe somebody could help?
One of the "raisons d'être" of dll's is to use them in other windows languages surely, and .so for Linux.
The pascal dll works perfectly in gcc and freebasic.
It is quite large though, 308 kb for the 64 bit.
But using strip can get it to 117 kb.
the .o file associated with the dll is only 8 kb, so, unless it uses no pascal in-builts it will be useless to load in other languages.
Hi roland57, we don't see you much in FB these days.