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 4 of 4

AxMappointCtrl vs. MappointCtrl?

This is a discussion on AxMappointCtrl vs. MappointCtrl? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello my friends, What's the difference between AxMappointCtrl and MappointCtrl in C#? I wrote a Mappoint application in VC++, but ...

  1. #1
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    AxMappointCtrl vs. MappointCtrl?

    Hello my friends,

    What's the difference between AxMappointCtrl and MappointCtrl in C#?

    I wrote a Mappoint application in VC++, but due of lack of support by Microsoft, I decided to write a new mappoint application in VC#. There are some small differences to change, but is doable.

    So I hope someone can explain me the difference, because I need to write a seperate class which handles all the mappoint processing.
    By the way, I'm a C# beginner, so that's why such a simple question.

    Thank you very much.
    Last edited by VC_Man; 07-03-2007 at 10:56 AM.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: AxMappointCtrl vs. MappointCtrl?

    Hi,

    axMappointControl is the activeX component. MappointControl is an interface, not sure it can be direct used.

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: AxMappointCtrl vs. MappointCtrl?

    Hi again

    If you need a separate class that do all the mappoint processing then you can create the axMappointControl component in that class. Also you can use the object model of Mappoint, but you cannot use both of them in same application in C#.

  4. #4
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    Re: AxMappointCtrl vs. MappointCtrl?

    Hoi Wilfriend my old friend ,

    Thank you for your answer.
    I found out that when I import mappoint in my project, I than can put a Mappoint Control on my Dialogbox which displays the map. I gave it a name e.g. MapCtrl. If I look where MapCtrl is instantiated, I found out that it's an object of AxMapPoint.MappointControl.

    And than I use MapPoint.Map class to declare a Map object.

    So the way I see, is AxMapPoint is like you said some kind of interface to work with the map! And AxMapPoint.MappointControl object has methods which can give you an object of type MapPoint.Map for example.
    Because AxMapPoint.MappointControl has a method NewMap(...), which returns a MapPoint.Map object....

    Ok I get it. Now I can see the analogy with Visual C++.
    Thank you!

Thread Information

Users Browsing this Thread

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

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 84 85 86 87 88 89 90 91 92 93 94 95 96