Correct way to copy _bstr_t to wchar_t*
<p>There is a class A that derives from _bstr_t. It needs to have a method that takes a wchar_t* and copies the bstr into it. Is this the safest way to do it if wcsncpy_s understands bstrs?</p>

<pre><code>class A: public _bstr_t
{
    ----
    ----

    void CopyTo(wchar_t* buf, size_t destinationsize)
    {  
        wcsncpy_s(buf, destinationsize, *this, length());
    }
};
</code></pre>
