Passing address of Lisp foreign callable to C
Hello, The FLI manual in section 4.3 shows how to define a Lisp function callable from C. The only demonstration of an actual call, though, is from a Lisp function designed to call C functions. There is only Lisp calling Lisp in that example. egrep found no 'define-foreign-callable' in the examples directories. Is it possible to pass the address of the Lisp function as a callback to the C world? Can someone pass along a short example using a fli:define-foreign-callable function as a Windows callback? It would be especially nice to have a RegisterClass / WndProc example but if it is not possible to hook into the flow of messages, an example of as much as is possible will be greatly appreciated. Would that example change under delivery, when I don't want CAPI but do need Lisp managing a windows message loop? I love CAPI so far but I have a conversion to do where it seems much easier to port straight across, gaining many Lisp-ish advantages while retaining look-and-feel, without having to decide if CAPI can reproduce everything exactly, or explain why it can't be the same as before. Corman claims to allow straight Win32 SDK apps but I'd rather stick with one Lisp implementation rather than two. Thanks, Jeff Caldwell __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com