title: Convert char array to UNICODE in MFC C++
body: <p>I'm using the folowing code to read files from a folder in windows. However since this a MFC application I have to convert the char array to UNICODE. For example if I hard code the path as "C:\images3\test\" as shown below the code works. </p>
  
  <hr>
  
  <pre><code>WIN32_FIND_DATA FindFileData;  
  HANDLE hFind = INVALID_HANDLE_VALUE;  
  hFind = FindFirstFile(_T("C:\\images3\\test\\"), &amp;FindFileData);
  </code></pre>
  
  <hr>
  
  <p>What I want is to get this working as follows:</p>
  
  <hr>
  
  <pre><code>char* pathOfFileType;  
  hFind = FindFirstFile(_T(pathOfFileType), &amp;FindFileData);
  </code></pre>
  
  <hr>
  
  <p>Can anyone tell me how to fix this problem ?<br>
  Thanks</p>