а если попробовать не инициализировать ipToOverwriteMap перед вызовом ipObjectCopy->Overwrite?
<!-- Start Member Post -->
HRESULT hr;
IObjectCopyPtr
ipObjectCopy(CLSID_ObjectCopy);
IPageLayoutControl2Ptr
ipPAgeLayoutControl = m_PageLayoutControl.get_Object();
IActiveViewPtr ipActiveView;
IMapPtr ipMap;
hr =
ipPAgeLayoutControl->get_ActiveView(&ipActiveView);
hr =
ipActiveView->get_FocusMap(&ipMap);
IUnknownPtr
ipToCopyMap = ipMap;
IUnknownPtr ipCopiedMap;
hr =
ipObjectCopy->Copy(ipToCopyMap, &ipCopiedMap);
IMapPtr
ipMap2 = m_MapControl.get_Map();
IUnknownPtr ipToOverwriteMap;
hr = ipObjectCopy->Overwrite(ipCopiedMap,
&ipToOverwriteMap);