Lisp HUG Maillist Archive

bstr pointers with COM




Hello,

I'm trying to communicate with an COM app whose method, given a pointer
variable to a bstr, puts an address of the desired bstring in the variable:

(com:call-dispatch-method  (intf I-Network-P-CS  GET-NEXT-PC) pName)

where intf is the class, i-network-p-cs is the dispinterface, and
get-next-pc is the method.  pName is of type (:pointer :bstr)

So the question is, how do I define pName so that this call works?  I have
tried all sorts of bindings using fli: functions, since there doesn't seem
to be any native bstr pointer functions, but I always get a type mismatch
error.  What type is the COM interface for the method expecting?

Also, I would assume that once I've done w/the bstr, I should release it...

R


Updated at: 2020-12-10 08:56 UTC