BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Cagatay Undeger
Guest





PostPosted: Sat Jan 24, 2004 12:07 pm    Post subject: how can I send a binary buffer in a method or event? Reply with quote



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





PostPosted: Sat Jan 24, 2004 10:01 pm    Post subject: Re: how can I send a binary buffer in a method or event? Reply with quote




"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.