25 Feb
2006
25 Feb
'06
5:54 a.m.
Please find attached two variations of the same test, which is to invoke the EnumWindows Win32 API with a callback that simply prints a message confirming that it was called (which occurs once for each top-level window). After loading either of these files, run (callback-test) to execute the test. stdcall-test-clisp.lisp uses the CLISP FFI. Note that it specifies :stdc-stdcall as the calling convention. This test executes correctly as expected. stdcall-test-cffi.lisp is the same but written in CFFI terms, except that stdcall is not available. This variant will crash clisp -- although circumstances may vary, so you probably need to execute (callback-test) in a loop to be sure. -- Jack Unrue