Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

add-in for C#/managed C++

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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    add-in for C#/managed C++

    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.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    AddIn

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Iteration2 Appointment as a Managed MapPoint Partner
    By Eric Frost in forum News and Announcements
    Replies: 0
    Last Post: 04-17-2005, 11:39 AM
  2. How to managed restricted area
    By tanguy_laverdure in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-20-2004, 04:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83