CEditView does not have a ReplaceSel method.

Use the CEditView::GetEditCtrl() method which returns a reference to a CEdit (edit control) then call CEdit::ReplaceSel(). Like this:

GetEditCtrl().ReplaceSelected( strResult, FALSE );