Hi, could someone help me:
I am a beginner in using MapPoint ActiveX control. I've integrated MapPoint control into my MFC project and a lot of MapPoint specific wrapper classes are added to my project. First step will be to make a US map appear on the screen after the user clicks my application's menu. I've tried this (following a suggestion given on MP2K forum - thank you for this one):
The user clicks the menu and the following routine will be processed:
void CMapPointTestView::OnMappoint()
{
CMappointCtrl MapPoint;
VARIANT var;
var.vt = VT_INT;
var.intVal = 1; //geoMapUSA
CMap1 map = MapPoint.NewMap(var);
}
It has to be somthing using an instance of CMappointCtrl calling NewMap(). But no map appears. Instead, I get an error message!![]()
Can someone help me?
Thanks in advance...