Obviously "COleControlSite::DetachWindow" should be
Code:
COleControlSite::DetachWindow