[Lazarus] Using a component OBJ file in Lazarus?

Bo Berglund bo.berglund at gmail.com
Fri Jul 27 08:36:32 CEST 2018

On Wed, 25 Jul 2018 13:31:08 -0400, Paul Breneman via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>I need to use the *same* security dongle in Lazarus.  I don't want to 
>change to a different dongle.

Since Safenet does not provide any new OBJ file nĀ“than the one fpc
cannot use the only path seems to be to somehow convert it using
But I have not yet succeeded and have given up because even if it
would be successful the solution relies on a vendor specific driver
for the operating system it will run on.
And we have had lots of problems over the years with their dongle
driver for Windows.

>I'd like a few more details on how to create the object in application code.


  MyDongle: TMyDongleType;
  MyDongle := TMyDongleType(NIL); 
    ....use the dongle functions....

You can also declare the dongle variable in global scope and use it in
more places.

The NIL argument is needed if the dongle is defined as a component
descendant since it has an owner:

  TMyDongle = class(TComponent);

Bo Berglund
Developer in Sweden

More information about the Lazarus mailing list