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
Remy Lebeau (TeamB)
CBuilder Developer
2004-01-25 06:01:09 AM
Re:how can I send a binary buffer in a method or event?
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