title: Can I create an instance of a COM struct in javascript?
body: <p>I'm writing a script in Javacript that is run from the command line using <strong>cscript.exe</strong>.</p>
  
  <p>I have the following <code>struct</code> defined in a .NET assembly exposed to COM.</p>
  
  <p>Definition in IDL:</p>
  
  <pre><code>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;
  </code></pre>
  
  <p>I can instantiate COM objects from Javascript using <code>WSH.CreateObject()</code> fine. However, is it possible to somehow create an instance of a COM struct from Javascript?</p>