Hi Ralf Mattes,
Thank you very much for your answer!
> I think you'll find the best sample code in the eql project -
> just do a "git clone git://gitorious.org/eql/eql.git
> This project embeds all of Qt into ECL.
I thought the same and therefore searched the EQL sources before writing my last email. I had the impression that EQL (beyond the simple code in lisp/ecl-readline.lisp) is based on CFFI which, as far as I understand, currently does not work with ECL under MSVC++.
If I am not mistaken, in this environment currently the only way to access foreign functions from ECL is to use ECL's own built-in foreign function interface, tocompile the code accessing C or C++ functionality into a static library (as dynamic loading from CFFI seems to not work in the moment) and to link the latter statically to the rest of the code.
Is this a misunderstanding?
For the case that ECL's own FFI is the only way which currently works with Microsoft's compilers, I had the impression that ECL's ecl_*foreign_data*() functions have to be used to wrap a pointer to a C++ class instance into a lisp object. But I could not find any usable example and (at least until now) was not successful in producing some working code myself...
If this impression is wrong, please correct me!
If it happens to be correct and somebody has an idea about how to wrap the simple C++ example from my last email into lisp, I would be most grateful!
Thanks a lot, Dietrich
Here the relevant part of my last email: