How to initialize an instance of IVectorView for C++/WRL?
<p>I'm trying to call <code>get_Skus()</code> method of <code>IStoreProduct</code> to retrieve its <a href="https://msdn.microsoft.com/en-us/library/windows/apps/windows.services.store.storeproduct.skus.aspx" rel="nofollow">Skus</a> property using <a href="https://msdn.microsoft.com/en-us/library/hh438466.aspx" rel="nofollow">C++/WRL</a> (not C++/CX) and I can't find any suitable code examples. That method is defined as such (as I get it from the header file in Visual Studio):</p>

<pre><code>virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_Skus( 
        /* [out][retval] */ __RPC__deref_out_opt IVectorView&lt;ABI::Windows::Services::Store::StoreSku*&gt; **value) = 0;
</code></pre>

<p>So when I try to do:</p>

<pre><code>#include &lt;Windows.Services.Store.h&gt;
#include &lt;wrl.h&gt;

using namespace ABI::Windows::Services::Store;
using namespace ABI::Windows::Foundation::Collections;

IVectorView&lt;StoreSku*&gt; pStrSkus;

//IStoreProduct* pStorePrdct = ...;
if (SUCCEEDED(pStorePrdct-&gt;get_Skus(&amp;pStrSkus)))
{
}
</code></pre>

<p>it gives me an error that:</p>

<blockquote>
  <p>'ABI::Windows::Foundation::Collections::IVectorView'
  : cannot instantiate abstract class</p>
</blockquote>

<p>I'm relatively new to <code>WRL</code>. Can someone show me how am I supposed to call that method?</p>