Hello there,
I'm coding a dll that uses WCL. When I try to get the device address and name in CwclServer , I get this weird link error from Visual Studio 2005. I can only work in VS2005, there is no way I can upgrade to 2008 or newer.
error LNK2019: unresolved external symbol "__declspec(dllimport) public: class ATL::CStringT<unsigned short,class ATL::StrTraitATL<unsigned short,class ATL::ChTraitsCRT<unsigned short> > > __thiscall wcl::CwclCustomServerConnection::GetDeviceName(void)" (__imp_?GetDeviceName@CwclCustomServerConnection@wcl@@QAE?AV?$CStringT@GV?$StrTraitATL@GV?$ChTraitsCRT@G@ATL@@@ATL@@@ATL@@XZ) referenced in function "private: void __thiscall bluetoothCom::OnDisconnected(void *)" (?OnDisconnected@bluetoothCom@@AAEXPAX@Z)
I think the problem is related to ATLString being newer in the wcl.dll than what I have with Visual Studio 2005.
Thanks for your help,
Rene