Re: use struct in vbscript?
Well, int is actually an Automation type (VT_INT). However,
most Automation environments, VB6 included, do not understand
and support it. But the Automation marshaler does, so the struct
is technically Automation-compatible. Just not interoperable.
To the OP: This of course does _not_ imply that VBScript can
handle structs. It just can't.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Igor Tandetnik" <itandetnik@mvps.org> wrote in message
news:%23m98mOD%23GHA.4196@TK2MSFTNGP03.phx.gbl...
"Claus77" <cmassion@web.de> wrote in message
news:1161754328.833614.185820@h48g2000cwc.googlegroups.com
i'm just programing a com-interface and within my .idl file i define
a struct
how can i use this in my vb-script?
You can't. VBScript does not support structs.
by the way, there always comes the warning from my midl-compiler:
could not set uuid:strukk
Your struct is not automation-compatible. Use short or long in place of
int.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925