I need to do a dll call from LISP:
Exported interface in engine.dll is:
int StartEng(LPCTSTR checkpt[]);
In LISP:
(ctutil:define-dll "engine.dll"
(:export nil)
(startEng "StartEng" :int
(argv (array (* :char)))
)
)
(setf checkpt '("brake" "gear" "door" "belt"))
(starteng checkpt)
and of course, it gives me segmentation fault.
I don't know what is the correct syntax and datatype. And seems that I
can't find much reference from the internet.
could anyone give me some hint?