On Sun, 2008-10-05 at 19:22 -0700, ··········@gmail.com wrote:
> How can I invoke WinAPI functions from Lisp directly (without McCLIM
> and other wrappings)? I use CLisp and SBCL.
Yup, see CFFI:
http://common-lisp.net/project/cffi/
..or if you don't care about or need portability between Lisps you can
use the FFI stuff in CLISP or SBCL directly:
http://www.sbcl.org/manual/Foreign-Function-Interface.html
http://clisp.cons.org/impnotes.html#dffi
CFFI does have some nice things going for it besides
"portability-enabling" the FFI stuff though.
--
Lars Rune Nøstdal || AJAX/Comet GUI type stuff for Common Lisp
http://nostdal.org/ || http://groups.google.com/group/symbolicweb
Lars Rune Nøstdal wrote:
> On Sun, 2008-10-05 at 19:22 -0700, ··········@gmail.com wrote:
>
>>How can I invoke WinAPI functions from Lisp directly (without McCLIM
>>and other wrappings)? I use CLisp and SBCL.
>
>
> Yup, see CFFI:
> http://common-lisp.net/project/cffi/
>
>
> ..or if you don't care about or need portability between Lisps you can
> use the FFI stuff in CLISP or SBCL directly:
>
> http://www.sbcl.org/manual/Foreign-Function-Interface.html
> http://clisp.cons.org/impnotes.html#dffi
>
> CFFI does have some nice things going for it besides
> "portability-enabling" the FFI stuff though.
>
And IIRC the native CLisp FFI had some things going for it over CFFI,
such as being able to just throw a lambda form at a callback parameter
with CLisp worrying about the rest.
But CFFI will make you more friends.
Meanwhile, where is that project that was wrapping win32 windowing API?
That would have a ton of examples.
hth,kt