[cffi-devel] Re: calling a function of the same name from two DLLs

Jack Unrue jdunrue at gmail.com
Tue Dec 19 15:15:52 UTC 2006


On 12/19/06, Hoehle, Joerg-Cyril <Joerg-Cyril.Hoehle at t-systems.com> wrote:
>
> Jack, you must roll your own.  Luckily, you can do so.  Use CFFI as soon
> as you get the address (pointer) of the function in the library that is
> of interest to you.  Given that pointer, CFFI provides enough glue
> to be able to construct (call) a foreign function out of it, e.g.
> foreign-funcall-pointer.  Also, use CFFI to obtain that pointer
> (via GetProcAddress() if all else fails).

Yep, that's a good idea.

> Or use #+ to write native def-call-out forms for several Lisps that
> support the library argument?

That's also a possibility.

Thanks everyone for your thoughts on this problem.

-- 
Jack Unrue



More information about the cffi-devel mailing list