MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to develop a MapPoint Appication

This is a discussion on How to develop a MapPoint Appication within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am a new developer in MapPoint and want to develop an application based on MapPoint with some of my ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2005
Junior Member
White Belt
 
Join Date: Sep 2005
Posts: 5
How to develop a MapPoint Appication

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-17-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

2. No problem to build application this way. You have some more typting to do because you cannot click on some component. I dont know for VC++, but building application like this in Delphi you dont have the mappoint label in the map. Accessing map object is the same as in 3 or 4 with a visual component.

3., 4. The original mappoint menu is not a public object, so you have to make your own menu and from your menu items you can access most (if not all) menu actions as in the original menu. Advantage is that you can add or remove things in your own menu.

About the slow start in 4, I dont know. What is the speed of the machine ? How many free RAM ? Note that in dotnet all take some more time as in regular win32 apps. I just tryed my testapp with mappoint on a 3 GHz machine and it is up and running in 13 seconds. Of course this is slow, I dont know wy it is sutch.

hope this answers some of your questions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
appication, develop, mappoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
I use MapPoint 2002, I`m trying to develop the rev.... Anonymous MapPoint 2006/2009 Discussion 1 11-23-2001 04:56 AM
I wish to develop an application using mappoint an.... Anonymous MapPoint 2006/2009 Discussion 1 11-05-2001 09:07 AM
I try to develop reverse Geocoding with MapPoint 2.... Anonymous MapPoint 2006/2009 Discussion 1 10-19-2001 06:00 AM
I have a client who would like me to develop a pro.... Anonymous MapPoint 2006/2009 Discussion 1 09-07-2001 02:49 PM
I am currently trying to develop a simple co-ordin.... Anonymous MapPoint 2006/2009 Discussion 1 08-07-2001 10:38 AM


All times are GMT -5. The time now is 03:37 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54