Khal Drogo
14th March 2008, 11:23
Greetings.
I used the following code with VS2003 and Qt 4.3.2 with success:
HWND appWindow = FindWindow(NULL, static_cast<LPCWSTR>(title.toStdWString().c_str()));
SetForegroundWindow(appWindow);
I now ported to VS2005 and Qt 4.4.0 and i receive the following linker error:
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)
Could you shed some light on what could be the problem?
Thank you.
I used the following code with VS2003 and Qt 4.3.2 with success:
HWND appWindow = FindWindow(NULL, static_cast<LPCWSTR>(title.toStdWString().c_str()));
SetForegroundWindow(appWindow);
I now ported to VS2005 and Qt 4.4.0 and i receive the following linker error:
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)
Could you shed some light on what could be the problem?
Thank you.