Does anyone has already created a com add-in for mappoint 2002 in C#/managed C++?
If so, can you provide me some sample code?
I didn't found any usefull samples on the net (yet).
Thanks in advance.
This is a discussion on add-in for C#/managed C++ within the MapPoint Desktop Discussion forums, part of the Map Forums category; Does anyone has already created a com add-in for mappoint 2002 in C#/managed C++? If so, can you provide me ...
Does anyone has already created a com add-in for mappoint 2002 in C#/managed C++?
If so, can you provide me some sample code?
I didn't found any usefull samples on the net (yet).
Thanks in advance.
Hi Niko,
I did it once in ordinary C++ (Visual studio .NET)
Create a project and add a COM object to this project. (for example CAddIn)
Add the implementation for the _IDTExtensibility2 interface to the COM-object.
In CAddIn::OnConnection(...) add a command to the MapPoint interface (using MapPoint::AddCommand(...) method), defining the method you wish to be called when the user clicks the newly create menu option.
There is one important step: registery settings for the AddIn: you have to let MapPoint know to use your AddIn. Under HKCU\Software\Microsoft\MapPoint\AddIns, add an entry for your AddIn.
You must specify 4 entrys under this key:
- CommandLineSafe
- Description
- FriendlyName
- LoadBehavior
Hope this helps..
paul@nidulus.be
http://www.nidulus.be
There are currently 1 users browsing this thread. (0 members and 1 guests)