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 

possible to use arrays or structs as parameter?

 
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: Sun Mar 20, 2005 7:33 pm    Post subject: possible to use arrays or structs as parameter? Reply with quote



Hi,

I would like to send/receive a list of strings as parameter.
is it possible to use arrays or structs as parameter in activeX controls?

thanks

Cagatay Undeger


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sun Mar 20, 2005 8:00 pm    Post subject: Re: possible to use arrays or structs as parameter? Reply with quote




"Cagatay Undeger" <cagatay (AT) interaktif (DOT) gen.tr> wrote


Quote:
I would like to send/receive a list of strings as parameter.

The standard way (ie, the way that COM officially supports so that multiple
environments can utilize it) is to use a SAFEARRAY. You can then take it a
step further, if needed (which you do if you want to support VB and
scripting languages), by wrapping the SAFEARRAY into a VARIANT, with its vt
member set to VT+BSTR | VT_ARRAY and its parray member set to the SAFEARRAY.


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.