 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Cagatay Undeger Guest
|
Posted: Sat Jan 24, 2004 12:07 pm Post subject: how can I send a binary buffer in a method or event? |
|
|
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
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Jan 24, 2004 10:01 pm Post subject: Re: how can I send a binary buffer in a method or event? |
|
|
"Cagatay Undeger" <cagatay (AT) interaktif (DOT) gen.tr> wrote
| 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
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|