title: How to get the length of a _bstr_t
body: <p>I am copying a wstring to a _bstr_t using:</p>
  
  <pre><code>_bstr_t name;           
  SysFreeString(name);   // Free previous string, if any.
  name = SysAllocString(Member[k].Membername);
  </code></pre>
  
  <p>Now before I use "name" I want to check if it contains at least 5 characters. In other words, I want to check the length of it.</p>
  
  <p>I didn't find a "countof" or "len" or something like that. Has anyone a idea?</p>
  
  <p>Thanks,
  Lumpi</p>