How do I return an array of strings from an ActiveX object to JScript
问题 I need to call into a Win32 API to get a series of strings, and I would like to return an array of those strings to JavaScript. This is for script that runs on local machine for administration scripts, not for the web browser. My IDL file for the COM object has the interface that I am calling into as: HRESULT GetArrayOfStrings([out, retval] SAFEARRAY(BSTR) * rgBstrStringArray); The function returns correctly, but the strings are getting 'lost' when they are being assigned to a variable in