title: error LNK2019:unresolved external symbol ::FindWindow() function
body: <p>I have function findId(const QString&amp; name) that throws me an error during coompilation:</p>
  
  <blockquote>
    <p>error LNK2019: unresolved external symbol __imp__FindWindowW@8 referenced in function "private: unsigned int__thiscall MainClass::findId(class QString const &amp;)"(findId@MainClass@@AAEIABVQString@@@Z)</p>
  </blockquote>
  
  <p>mainclass.cpp:</p>
  
  <pre><code>WId MainClass::findId(const QString&amp; name)
  {
    return (WId) ::FindWindow(NULL, (TCHAR*)name.utf16());
  }
  </code></pre>
  
  <p>I don't know where the problem is because I have used this code before in my other project and there it worked. Maybe I missed something.</p>