My example is as below :
Code: Select all
uses libgfl;
var s1:string;
f_info:gfl_format_information;
i:gfl_int32;
er:integer;
begin
gfllibraryinit;
move(gflgetversion^,s1[1],4);
s1[0]:=#4;
writeln('Version : ',s1);
er:=gflgetformatinformationbyname('jpeg',@f_info);
writeln('Erreur ',er);
move(f_info.description,s1[1],4);
s1[0]:=#4;
writeln('Format : ',s1);
move(f_info.name,s1[1],4);
s1[0]:=#4;
writeln('Name : ',s1);
i:=1;
er:=gflgetformatinformationbyindex(i,@f_info);
move(f_info.name,s1[1],4);
s1[0]:=#4;
writeln('Name : ',s1);
end.
Is there anybody that has an idea of what is going on?
Thanks in advance.