I’m writing a script in Javacript that is run from the command line using cscript.exe.
I have the following struct defined in a .NET assembly exposed to COM.
Definition in IDL:
typedef [uuid(CA667ABD-C702-49DD-BC23-E9A7F75081E5), version(1.0),
custom(0F21F359-AB84-41E8-9A78-36D110E6D2F9, "MyApp.TestStruct")
]
struct tagTestStruct {
MyEnum MyEnumValue;
DATE Start;
} TestStruct;
I can instantiate COM objects from Javascript using WSH.CreateObject() fine. However, is it possible to somehow create an instance of a COM struct from Javascript?
It appears that it cannot be done.