Results 1 to 10 of 23

Thread: What is the practice for passing values to DLLs (variants?)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Join Date
    Feb 2009
    Location
    The Netherlands
    Posts
    4,674

    Default Re: What is the practice for passing values to DLLs (variants?)

    For DataFlex 20.0 we pretty much rewrote external function. Mainly because the original implementation could not be ported to 64-bit, was also hard to maintain and had its issues (bigints didn't work for example). We are now using a library called libffi to actually make the call. This library is linked into the runtime and the runtime pretty much prepares the parameters, as it did before, and now passes it on to this library which does the rest. To be honest, I am not sure of the exact details regarding which calling conventions it supports and if / how it performs auto detection, but we have done some limited testing with CDECL and it did appear to work.
    Last edited by Harm Wibier; 27-Aug-2020 at 11:09 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •