| View previous topic :: View next topic |
| Author |
Message |
Jaroslaw Szopa Guest
|
Posted: Mon Mar 01, 2004 9:13 am Post subject: DCOM and Arrays |
|
|
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
|
Posted: Mon Mar 01, 2004 9:38 am Post subject: Re: DCOM and Arrays |
|
|
"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
|
Posted: Mon Mar 01, 2004 10:14 am Post subject: 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 ([url]http://www.grisoft.com)[/url].
Version: 6.0.593 / Virus Database: 376 - Release Date: 2004-02-20
|
|
| Back to top |
|
 |
BigStew Guest
|
Posted: Mon Mar 01, 2004 1:23 pm Post subject: Re: DCOM and Arrays |
|
|
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
|
Posted: Mon Mar 01, 2004 6:10 pm Post subject: Re: DCOM and Arrays |
|
|
"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
|
Posted: Tue Mar 02, 2004 7:45 am Post subject: Re: DCOM and Arrays |
|
|
OK.
There's a good document about SAFEARRAYS
"SAFEARRAYs Made Easier" at BDN
Best Regards
Jaroslaw Szopa
|
|
| Back to top |
|
 |
|