Get a char from a CString
<p>I have created a function that has as input a char szMyChar; (using it in a switch statement).</p>

<p>Now I have a CString having just a char, lets say <code>CString strString = "A";</code></p>

<p>An option to call the function could be:</p>

<pre><code>if (strString == "A")
 CallMyFunc('A');
</code></pre>

<p>though it is clumsy. I tried atoi (returns 0) and casting though neither works.</p>

<p>Any ideas?</p>

<p>Thanks,
Sun</p>
