title: How to find value in a CMap if the key value has space in it in C++
body: <p>I have a requirement where I am storing the key, values pairs in a MFC <code>CMap</code>. While storing the values in this map one of the key values has a space in it and properly the key and value pairs are inserted into the <code>CMap</code>.</p>
  <p>But when I am trying to find the value of a key which has space in it (two words), the value is not returned by the <code>CMap</code> lookup command. (if key does not have space then its working fine).</p>
  <p>May I know how to query for the value if the key has space in it in <code>CMap</code>.</p>
  <p>key here : &quot;hello world&quot;
  value : &quot;Test&quot;;</p>
  <pre><code>CMap&lt;LPCTSTR,CString&gt; testMap;
  
  if(testMap.LookUp((LPCTSTR)key.MakeLower(), val))
  {
  
  }
  </code></pre>