Board index » cppbuilder » how can I send a binary buffer in a method or event?

how can I send a binary buffer in a method or event?


2004-01-24 08:07:43 PM
cppbuilder113
Hi,
I want to send a binary buffer within methods or events (or a pointer of a
buffer if possible) of an ocx.
Does ocxs in a single application uses the same virtual memory?
Kind regards,
Cagatay
 
 

Re:how can I send a binary buffer in a method or event?

"Cagatay Undeger" < XXXX@XXXXX.COM >wrote in message
Quote
I want to send a binary buffer within methods or events
(or a pointer of a buffer if possible) of an ocx.
The only safe way to do that in COM is to pass a SAFEARRAY of type VT_UI1
that has the desired bytes copied into it. Depending on your target
environments, you may or may not also need to wrap the SAFEARRAY inside a
VARIANT as well.
Gambit