Is it possible to call function pointer value?
"Jong-Kyou Kim" <[email protected]> Sat, 26 Jul 2003 22:57:18 +0900
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <000e01c3537d$d5ede160$0300a8c0@alpha> |
Hi All,
I know that it is possible to call dll exported functions within
cormanlisp. But I'd like to call a C function which is passed as
a function pointer.
Is it possible to pass a function pointer into cormanlisp function and
call it within the lisp function?
Suppose that there is a DLL function 'dll_func' generated by
cormanlisp. It takes an argument of function pointer 'fptr'. Is it
possible to call the function pointer within the function `dll_func'?
Assuming that there is a data type :func_pointer, I'd like to write
code shown like the following:
(ct:defun-dll-export-c-function (dll_func "dll_func")
((fptr :func_pointer))
(funcall fptr))
Thanks in advance.
Jong-Kyou Kim