title: Conversion of ATL CString to character array
body: <p>I want to convert a <a href="https://msdn.microsoft.com/en-us/library/aa315043(v=vs.60).aspx" rel="nofollow"><code>CString</code></a> into a <code>char[]</code>. Some body tell me how to do this?</p>
  
  <p>My code is like this :</p>
  
  <pre><code>CString strCamIP1 = _T("");
  char g_acCameraip[16][17];
  strCamIP1 = theApp.GetProfileString(strSection, _T("IP1"), NULL);
  g_acCameraip[0] = strCamIP1;
  </code></pre>