Board index » cppbuilder » DCOM and Arrays

DCOM and Arrays


2004-03-01 05:13:33 PM
cppbuilder47
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 (www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20
 
 

Re:DCOM and Arrays

"Jaroslaw Szopa" < XXXX@XXXXX.COM >wrote in message
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
 

Re:DCOM and Arrays

For example an array of double or float values
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (www.grisoft.com).
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20
 

{smallsort}

Re:DCOM and Arrays

Take a look at the documentation in safearry.h, located in
$(BCB)\Include\Vcl\
It has examples of creating and reading SAFEARRAYs.
They're quite straight forwardto use...
Stew
"Jaroslaw Szopa" < XXXX@XXXXX.COM >wrote in message
Quote
For example an array of double or float values


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


 

Re:DCOM and Arrays

"Jaroslaw Szopa" < XXXX@XXXXX.COM >wrote in message
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
 

Re:DCOM and Arrays

OK.
There's a good document about SAFEARRAYS
"SAFEARRAYs Made Easier" at BDN
Best Regards
Jaroslaw Szopa