title: How to display string from LPVOID type in Edit control
body: <p>I have problem when using File Mapping and read it.</p>
  
  <p>Bellow code, i get pMemory form MapViewOfFile, but I don't know how to display content to Edit control, I only get mess characters (like Chinese characters). I want to use UNICODE</p>
  
  <pre><code>szFileName = L"abc.txt";
  hFile = CreateFile(szFileName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_ARCHIVE, NULL);
  hMapFile = CreateFileMapping(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
  
  pMemory = MapViewOfFile(hMapFile, FILE_MAP_READ, 0,0,0);
  FileSize = GetFileSize(hFile, NULL);
  SendMessage(hWndEdit, WM_SETTEXT, 0, (LPARAM)(LPCWSTR)pMemory);
  UnmapViewOfFile(pMemory);
  CloseHandle(hMapFile);
  CloseHandle(hFile);
  </code></pre>
  
  <p>Anyone can help me ???</p>
  
  <p><strong>UPDATE:</strong>
  I've debugged pMemory and sure it contain address. And when I use file with only ASCII text + use SendMessageA --> it work pretty fine, display correct text (but only not separate line). But if I use text with UNICODE text, it don't display correct characters </p>