Anonymous
02-28-2004, 02:37 PM
hi ..
i am a beginner in mappoint automation, it seems that mappoint is mainly used with visual basic ... what about visual c++ ? all what i need to do is to add pushpins on the map by giving long and lat
if someone can give me a piece of advice, i will appreciate, many thanks
Eric Frost
03-01-2004, 04:47 PM
Is there an advantage for you in using C++? It can certainly be done but there are some additional hurdles.. are you thinking about Visual C++ or another C++? Also, what version?
Eric
Anonymous
03-22-2004, 10:09 AM
Hi,
I have almost the same question like alain_g400.
I'm using Microsoft Visual C++ 6.0.
I have MapPoint 2004 Europe and would like to create a small application to test the MapPoint integration into a C++ project.
i.e.: I'd like to display a simple route between two points A and B on the map.
For testing purposes I will directly code the points A and B into my code (hardcoding). Then when you click on a button, the map (MapPoint) will open and show the route between A and B.
Can anybody tell me where I can find some sample code for this? (I'm quite sure that I'm not the first person trying to realize this.)
Thanks for any input.
Cheers,
Robert
Winwaed
03-22-2004, 11:50 AM
Have you tried looking in the articles section of this website? :)
Here's a recent article I wrote about doing it without MFC:
http://mp2kmag.com/a106--c++.without.mfc.mappoint.html
The article even gives a routing example.
You may prefer to use MFC, in which case there are some functions available to make it a bit easier.
However MFC is getting a bit old and clunky IMHO.
Richard
Anonymous
03-23-2004, 04:09 AM
Thanks a lot. That helps me!
Regards,
Robert
Anonymous
03-30-2004, 04:38 PM
Hi,
and how about using the MapPoint web service with C++? I have no problem using it with C#, but as I have already a lot of code written in C++ I'd prefer this language. I'm using VS .NET 2003 and it's an MFC application.
Thanks for any help!
Winwaed
03-30-2004, 09:17 PM
I haven't used the WebService, but I would have thought C# would have been a 'natural' choice.
Presumably one choice is to convert your C++ to "Managed C++". I've never worked with Managed C++ so I can't tell you what is involved.
Richard