Retrieve javascript array object with C++ using DISPID_NEWENUM fails on IE9
问题 following a similar question i answered some time ago, i found out that when trying to enumerate the object, using IDispatch::Invoke(DISPID_NEWENUM,...) fails with DISP_E_EXCEPTION on IE9. This happens with IDispatch and IDispatchEx , on any javascript array. needless to say that the code works great on IE6-IE8, and fails only on IE9. The same question also appears in the MSDN dev forums with no luck so far. Here's a code snippet to demonstrate what I tried to do. notice that pDispatch is the