Greetings.
I had a project made under VC2003 with Qt 4.3.3, and i tried to port it to VC2005.
I am using something like:
Qt Code:
HWND appWindow = FindWindow(NULL, static_cast<LPCWSTR>(title.toStdWString().c_str()));To copy to clipboard, switch view to plain text mode
The above code worked beautifully under VS2003, but it gives the following linking error under VC2005. :
Please give me some ideas as to why this might happen.Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall QString::toStdWString(void)const " (__imp_?toStdWString@QString@@QBE?AV?$basic_string @_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ XZ) referenced in function "private: void __thiscall test::nextWindow(void)" (?nextWindow@test@@AAEXXZ) test.obj


Reply With Quote

Bookmarks