convert a STRING from LPCWSTR and vice versa c++
<p>I want to compare a LPCWSTR with a value to ensure they're equal. And I can't figure out how to compare it. I create a STRING value and tried various conversions but nothing worked. Essentially it would be:</p>

<pre><code>request-&gt;id // some LPCWSTR value
STRING str = "value" // String value I want to compare
if (request-&gt;id != str)
{
 //Something
}
</code></pre>