The destination variable should be a pointer to (wide) character buffer, or a reference to a
CString
object, as described in
CComboBox::GetLBText | Microsoft Docs[
^]. If this code is part of a dialog (and the
UpdateData
call suggests that it is), then the
m_
prefix suggests that it should be a class variable, generated by the Class Wizard.