Hi guys,
I've used this style of importing Mappoint, but when I close my app I get this:
First-chance exception in MapPrac.exe (KERNEL32.DLL): 0x800706BE: (no name).
And I've just used this code:
Code:
void CMapPracDlg::OnButtonStart()
{
CMap1 map;
map = m_Mappoint.GetActiveMap();
CLocation loc;
loc = map.GetLocation( 50.90695, 7.47828, 1 );
CPushpin pushpin;
pushpin = map.AddPushpin( loc.GetLocation(), "ID: Target" );
pushpin.SetBalloonState(1);
loc.GoTo();
m_Mappoint.ShowWindow( 1 );
}
Everything works fine and the app doesn't collapse, but it just doesn't exits mappoint the right way.
I hope somebody can explain this.
Does somebody has experience with another way of importing Mappoint in VC++? e.g. importing the mappoint library? How can I show the map? Normally I've done this by importing ActiveX and VC++ autamatically generates a MapControl I can drag 'n drop where I want on my GUI, to display the map. With importing library I don't know how to do that. I've read the articles how to do that, but not how to show the map.