title: How to assign a value to a TCHAR array
body: <p>I have a <code>TCHAR</code> array in my C++ code which I want to assign static strings to it.</p>
  
  <p>I set an initial string to it via</p>
  
  <pre><code>TCHAR myVariable[260] = TEXT("initial value");
  </code></pre>
  
  <p>Everything works fine on this. However, when I split it in two lines as in</p>
  
  <pre><code>TCHAR myVariable[260];
  myVariable = TEXT("initial value");
  </code></pre>
  
  <p>it bugs and gives a compiler error:</p>
  
  <blockquote>
    <p>error  C2440: '=': cannot convert from 'const char [14]' to 'TCHAR [260]'</p>
  </blockquote>
  
  <p>shouldn't the <code>TEXT()</code> function do exactly what I want here? convert the given string to <code>TCHAR</code>s? Why does it work, when putting the two lines together? What do I have to change in order to get it working?</p>
  
  <p>Some other confusing thing I have encountered:</p>
  
  <p>I've searched the internet for it and have seen that there are also <code>_T()</code> and <code>_TEXT()</code> and <code>__T()</code> and <code>__TEXT()</code>. What are they for? Which of them should I use in what environment?</p>