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 

DCOM and Arrays

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





PostPosted: Mon Mar 01, 2004 9:13 am    Post subject: DCOM and Arrays Reply with quote



Hi there !

How can I pass one dimentional array to / from COM server ?
Do I have to use SAFEARRAYS to do this ?

Yaro


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Mar 01, 2004 9:38 am    Post subject: Re: DCOM and Arrays Reply with quote




"Jaroslaw Szopa" <szopaj (AT) poczta (DOT) onet.pl> wrote


Quote:
How can I pass one dimentional array to / from COM server ?

An array of what exactly? Different data types can be passed in different
ways.

Quote:
Do I have to use SAFEARRAYS to do this ?

That, or a Variant array. But again, it depends on what exactly you are
trying to pass in the first place.


Gambit



Back to top
Jaroslaw Szopa
Guest





PostPosted: Mon Mar 01, 2004 10:14 am    Post subject: Re: DCOM and Arrays Reply with quote



For example an array of double or float values


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20


Back to top
BigStew
Guest





PostPosted: Mon Mar 01, 2004 1:23 pm    Post subject: Re: DCOM and Arrays Reply with quote

Take a look at the documentation in safearry.h, located in
$(BCB)IncludeVcl
It has examples of creating and reading SAFEARRAYs.
They're quite straight forwardto use...

Stew

"Jaroslaw Szopa" <szopaj (AT) poczta (DOT) onet.pl> wrote

Quote:
For example an array of double or float values


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Mar 01, 2004 6:10 pm    Post subject: Re: DCOM and Arrays Reply with quote


"Jaroslaw Szopa" <szopaj (AT) poczta (DOT) onet.pl> wrote

Quote:
For example an array of double or float values

A Variant array will work for that, but you can use a SAFEARRAY as well if
you like.


Gambit



Back to top
Jaroslaw Szopa
Guest





PostPosted: Tue Mar 02, 2004 7:45 am    Post subject: Re: DCOM and Arrays Reply with quote

OK.

There's a good document about SAFEARRAYS
"SAFEARRAYs Made Easier" at BDN

Best Regards
Jaroslaw Szopa


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.