View Single Post

  #1 (permalink)  
Old 06-11-2006
geouser geouser is offline
Junior Member
Yellow Belt
 
Join Date: Jun 2006
Posts: 13
Integrating MapPoint control into a VC++ application

One more try, could somebody help:
I want to use MapPoint Control in my VC++ FormView based application. In the CFormView object there is the following code

void CMapPointTest1View::OnInitialUpdate()
{

..................

VARIANT var;
var.vt = VT_INT;
var.intVal = 1;
CMap1 map = m_MapPoint.NewMap(var);
}

m_MapPoint is the CMappointCtrl object to which I connected the MapPoint control element (CMappointCtrl object).
A map appears. But once I click in it, MapPoint collapses. There must be a solution.
Thanks! Jörg
Reply With Quote