I have function findId(const QString& name) that throws me an error during coompilation:
error LNK2019: unresolved external symbol __imp__FindWindowW@8 referenced in function "private: unsigned int__thiscall MainClass::findId(class QString const &)"(findId@MainClass@@AAEIABVQString@@@Z)
mainclass.cpp:
WId MainClass::findId(const QString& name)
{
return (WId) ::FindWindow(NULL, (TCHAR*)name.utf16());
}
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.