title: Find the item in the MAP by TCHAR key-name
body: <p>So, i have two textboxes (defined early) and two vectors:</p>
  
  <pre><code> std::vector&lt;TCHAR*&gt; v1;
   std::vector&lt;int&gt; v2;
  </code></pre>
  
  <p>and map:</p>
  
  <pre><code>std::map &lt;TCHAR*, int&gt; m1;
  std::map &lt;TCHAR*, int&gt;:: iterator i1;
  </code></pre>
  
  <p>Map init: </p>
  
  <pre><code>void mapInit()
  {
  m1[L"one"] = 1;
  m1[L"two"] = 2;
  m1[L"three"] = 3;
  m1[L"four"] = 4;
  m1[L"five"] = 5;
  m1[L"six"] = 6;
  m1[L"seven"] = 7;
  m1[L"eight"] = 8;
  m1[L"nine"] = 9;
  m1[L"ten"] = 10;
   }
  </code></pre>
  
  <p>I should to get the word "one" from the first textbox and write it to vector 'v1' (textbox must have more words in future, so i can't to do it without vector). 
  After, the program have to find in the map desired value by key-name:</p>
  
  <pre><code>TCHAR *zr = v1.at(0); // v1.at(0) has the word `one` atm
  i1 = m1.find(zr); // want to get value `1` by key `one`
  int z = i1-&gt;second; // and get it completely
  </code></pre>
  
  <p>I got an debug assertion error "map/set iterator not dereferencable" .. :(</p>
  
  <p>If i will do all the same but will change it to L"one":</p>
  
  <pre><code>TCHAR *zr = L"one"; // 
  i1 = m1.find(zr);
  int z = i1-&gt;second;
  </code></pre>
  
  <p>so it will works...
  Why doesn't it work with value by vector? I checked with debugger my value of vector - its 'L"one"' too! But doesn't work anyway...</p>
  
  <p>NOTE: i also tried to find the word without .find() method:</p>
  
  <pre><code>TCHAR *zr = v1.at(0);
  int z = m1[zr]; // - now `z` returns a null...
  </code></pre>
  
  <p>If i will change 'v1.at(0)' to L"one", it will work again</p>
  
  <p>Heeeeeelp :( Why doesn't it work?</p>
  
  <p>=================================================</p>
  
  <p>Yeeeeeeeah now it works! :)
  Easy fix: </p>
  
  <pre><code>wstring zr = v1.at(0);
  int z = m1[zr];
  </code></pre>
  
  <p>Double happy face )
  Thanks to everybody for the help bro-s :)</p>