RE: Fli and pointers to pointers
Thanks for the tips, but they don't seem to affect the outcome. Any other
thoughts?
dey
-----Original Message-----
From: tarvydas [mailto:tarvydas@allstream.net]
Sent: Tuesday, November 02, 2004 12:21 PM
To: Young, David; 'lisp-hug@xanalys.com'
Subject: Re: Fli and pointers to pointers
On Tuesday 02 November 2004 11:29 am, Young, David wrote:
> (fli:with-foreign-slots (legal-names) *hobbit*
> (print legal-names))
You need to convert the foreign strings to lisp strings before you can call
lisp's PRINT.
> char **legal_names;
> (legal-names (:c-array :ef-mb-string)))
It's been a while since I've steeped myself in FLI'ism, but, in some of my
old
code, I found this decl:
(name (:pointer (:ef-mb-string 256)))
Further down, this field is accessed by a combination of
convert-from-foreign-string and foreign-slot-value
(fli:convert-from-foreign-string
(fli:foreign-slot-value partdesc 'name))
Hope that helps.
pt
This email message is for the sole use of the intended recipients(s) and may contain confidential and privileged information of Bloodhound Software, Inc.. Any unauthorized review, use, disclosure is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.