I am a new developer in MapPoint and want to develop an application based on MapPoint with some of my UI. I have tried several ways, and have some problems:
(1) Add-In with VB6.0 – just follow the introduction in MapPoint help. I could add my menu item to MapPoint menu and popup a dialog. It seems workable. The problems are:
1. How could I access map object from my menu item handler?
2. I did not write VB code before. Is it possible for me to write Add-In with VC++?
(2) MFC exe with VC++ -- Using COleDocument/COleClientItem classes to load the MapPoint Control into the CView window. Basically, COleDocument has menu item Edit | Insert New Object… , so that we could load any registered controls. I just wrote some code to simplify this control selection process. I could add my menu item to MapPoint menu and I could do the operations MapPoint Provided. The problem is:
1. How could I access map object from my menu item handler?
(3) MFC exe with VC++ -- Create a CMappointCtrl in the CView object. I could show the Map. The advantage of this way is that I could access the MapPoint objects (such as map, location, pushpin) directly. The problems are:
1. How could I load the MapPoint original menu?
2. Where is the detailed documents for CMappointCtrl(such as the descritions for classes CMap1, CLocation, CFindResults )?
3. Could I build application in this way.
(4) Automate the MapPoint 2002 Control by Using Managed Visual C++ .NET – Just follow the instruction in web page http://support.microsoft.com/default...b;EN-US;302900
It works well. The problems
1. The program starting is too slow – it might take more than 30 seconds to show the map up.
2. It does not show the MapPoint original menu.
(5) I know I might be able to use a web service; I am still waiting my account approval. Is this a good way to write a MapPoint application?
I prefer (3) or (4) because I could access the control interface directly. But I am still facing lots of problems.
Thanks for any help.