line 182 is throwing a type conversion error sDevices.push_back(woc.szPname); woc.szPname is a TCHAR array and sDevices is a vector \<wstring\> I haven't found a successful conversion from the two on the internet yet