From: Francis Leboutte

Subject: Re: cpointer arguments in ACL/Win

Date: 1996-10-28 13:43

At 09:45 28/10/96 -0500, Bruce Tobin wrote:
>Suppose you have the following definitions: > >(ct:defcstruct mystruct > ((data1 win:word) > (data2 win:word) > (data3 :char 4))) > >(ct:defun-dll my-c-fun ((pmystruct (mystruct *))) > :call-mode :c > :return-type :long > :library-name mylib > :entry-name "test-func") > >Assuming that test-func takes one argument, a >pointer-to-mystruct that will be filled with the >address of a newly created mystruct: > >1. Is my-c-fun defined correctly?
Seems OK.
>2. What do I pass to my-c-fun when I call it?
E.g. the following *mystruct*: (defparameter *mystruct* (callocate mystruct data1 <value1> data2 <value2>)) Francis -- Francis Leboutte, Algorithme, Rue de la Charrette 141, 4130 Tilff, Belgium <glo.be at algo> http://user.glo.be/~algo t&fax: +32-(0)4-388.35.28