title: How to make global value for URL->bstrVal?
body: <p>I am currently using this function inside my program.</p>
  
  <pre><code>void CBar::DocumentComplete(IDispatch *pDisp, VARIANT *URL)
  </code></pre>
  
  <p>How to make the BSTR value inside <code>URL-&gt;bstrVal</code> available for the whole program? I need to access the url value from other function.</p>