title: How do I convert a string to a wstring using the value of the string?
body: <p>I'm new to C++ and I have this issue. I have a string called DATA_DIR that I need for format into a wstring.</p>
  
  <pre><code>string str = DATA_DIR;
  std::wstring temp(L"%s",str); 
  </code></pre>
  
  <p>Visual Studio tells me that there is no instance of constructor that matches with the argument list. Clearly, I'm doing something wrong.</p>
  
  <p>I found this example online</p>
  
  <pre><code>std::wstring someText( L"hello world!" );
  </code></pre>
  
  <p>which apparently works (no compile errors). My question is, how do I get the string value stored in DATA_DIR into the wstring constructor as opposed to something arbitrary like "hello world"?</p>