Re: Array of structures
- From: "um" <dont_email@xxxxxxxxxx>
- Date: Thu, 13 Oct 2005 14:46:36 +0200
"Serge Baltic" wrote
>
> u> Can JScript use a COM object that is an array of structures? (ie. a
> u> C/C++ SafeArray of structures of the same type)
>
> I doubt that. The proper way to expose such a thing to scripting would be
> to implement the structure as an ActiveX object with corresponding properties,
> and to use the collection ActiveX object (that provides the Count, Item(n),
> and _NewEnum) to hold them instead of an array. In this case there'll be
> no problem of accessing it from a script.
How would it be used within the script?
Have not done much with ActiveX yet, only basic COM.
Do you have some references/links/keywords where I might find a similar sample?
The script and the C++ app are residing on the same machine.
Actually the script is used from within the same application.
The struct has POD types like this:
struct TS
{
int iVal;
float flVal;
char szVal[32];
};
TS aS[100];
TIA
.
- Follow-Ups:
- Re: Array of structures
- From: Dave Methvin
- Re: Array of structures
- References:
- Array of structures
- From: um
- Re: Array of structures
- From: Serge Baltic
- Array of structures
- Prev by Date: Re: anyone understand the templateprinter?
- Next by Date: Re: Playing audio in Firefox
- Previous by thread: Re: Array of structures
- Next by thread: Re: Array of structures
- Index(es):
Relevant Pages
|