flre icon indicating copy to clipboard operation
flre copied to clipboard

Usage examples for FLRELib

Open rchastain opened this issue 10 years ago • 3 comments

Hello Benjamin!

When you have free time, could you give an example using FLRELib?

It would be interesting to have examples in different languages. Maybe I could contribute, but I need you to give the first example. :)

Best regards.

Roland

rchastain avatar Nov 28 '15 17:11 rchastain

I made this little example (for Free Pascal):

program testdll1;

{$MODE DELPHI}

uses
  Classes, SysUtils;

function FLREGetVersionString(): pchar; stdcall; external 'FLRELib';

begin
  WriteLn(FLREGetVersionString());
  ReadLn;
end.

But for the other functions, I don't see how to use them.

rchastain avatar Nov 29 '15 07:11 rchastain

Only the problem in the moment: The foreign-API of FLRE is a bit out-of-sync in the moment, so I must (re-)sync the foreign-API first to the Pascal-native API again.

BeRo1985 avatar Nov 29 '15 17:11 BeRo1985

OK, thank you for the answer. I don't really need the dynamic library for now. I was just curious about the way to use it.

rchastain avatar Nov 29 '15 17:11 rchastain