title: Why do I need to put an L before the string and do I create this variable correctly?
body: <p>I am sort of new to C++ and I got troubles understanding the usage of the data types fully.</p>
  
  <p>I have these variables to be applied to createwindow parameters and the class with it. That takes an LPCWSTR data type.</p>
  
  <pre><code>LPCWSTR szTitle = L"Hello";
  LPCWSTR szWindowClass = L"There";
  </code></pre>
  
  <p>Therefore I did that, although, I don't understand why I have to include the L before the string (the debugger put it there to be honest).  I have also not too often seen strings be defined as the direct types (instead I often see WCHAR,char, etc). If you would make these variables, how would you write them? I don't believe I should be using LPCWSTR. Again sorry, I am fairly new and I can't find exactly what I'm looking for online.</p>