title: Check if string is empty
body: <p>I got a project in C++ which I need to edit. This is a declaration of variable:</p>
  
  <pre><code>LPSTR hwndTitleValue = (LPSTR)GlobalAlloc(GPTR,(sizeof(CHAR) * hwndTitleSize));
  </code></pre>
  
  <p>How to check if this string is empty? </p>
  
  <p>I tried simply with <code>if(hwndTitleValue == "")</code> but it always returns false. How to check if this string is empty?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I also need to check if the file is attached. Here is the code of the file:</p>
  
  <pre><code>    // Attachment
      OFSTRUCT ofstruct;
      HFILE hFile = OpenFile( mmsHandle-&gt;hTemporalFileName , &amp;ofstruct , OF_READ );
      DWORD hFileSize = GetFileSize( (HANDLE) hFile , NULL );
      LPSTR hFileBuffer = (LPSTR)GlobalAlloc(GPTR, sizeof(CHAR) * hFileSize );
      DWORD hFileSizeReaded = 0;
      ReadFile( (HANDLE) hFile , hFileBuffer, hFileSize, &amp;hFileSizeReaded, NULL );
      CloseHandle( (HANDLE) hFile );
  </code></pre>
  
  <p>How to check if <code>hFile</code> is empty?</p>