Michael Schnell wrote:
On 08/20/2015 03:42 AM, Fabio Luis Girardi wrote:

Everyone know some alternative (or more elegant)...

AFAIK FPC does not support using objects (er even strings) cross a dynamic library interface.

Unless you explicitly use the cmem library. However even then it's basically restricted to passing/returning strings as procedure parameters/results.

Delphi has "Runtime Packages" for this. But those are not (yet) implemented in fpc (which would need to do that for all OSes)

So you need to do "flat" library calls: no objects, no strings, ...

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to