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
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

VS2008 b2 + Mappoint 2006

This is a discussion on VS2008 b2 + Mappoint 2006 within the Development forums, part of the MapPoint Desktop Discussion category; Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging ...

  1. #1
    ttallskog is offline Junior Member White Belt
    Join Date
    Aug 2007
    Posts
    2

    Question VS2008 b2 + Mappoint 2006

    Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging it onto the center of the form it relocates its self to the upper left corner. Thought this might be normal so i tried to creata a map of europe but this gives a exception with no information.

    MapControl(ocx) is called "mapCtl"

    code:
    --------
    Map m;
    try{
    m = mapCtl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
    }
    catch(Exception ex){
    }


    Any idears?

  2. #2
    jasanite is offline Member Yellow Belt
    Join Date
    Jul 2007
    Posts
    45

    Re: VS2008 b2 + Mappoint 2006

    Hi, a wrong answer is better than no answer ... right?
    blind shot ... so just use it as much as its worth

    I had an similar problem when i tried to use the ctrl
    without visualising it. So i guess Vs2008 has a problem
    to add it correct to the form, ergo the ocx isn't fully
    initialized. (I have 2005)

    My code:
    Code:
    AxMappointControl mpCtrl = new AxMappointControl();
    Form.Control.Add(mpCtrl);
    mpCtrl.EndInit();
    mpCtrl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
    So maybe your Control isn't really added to the form,
    or the initialization isn't finished. I think it is the
    second one therefor you will need the EndInit.
    When you debuged the error, you got into the
    Ax and (ocx == null) ... throw ... , just from my
    experience.

    You can also use your own instance like in the code
    above. AFAIK

  3. #3
    jasanite is offline Member Yellow Belt
    Join Date
    Jul 2007
    Posts
    45

    Re: VS2008 b2 + Mappoint 2006

    But hell do i know, i made a wrapper with the
    studio aximp and used those dll's.

  4. #4
    jasanite is offline Member Yellow Belt
    Join Date
    Jul 2007
    Posts
    45

    Re: VS2008 b2 + Mappoint 2006

    Here link to my problem, there is also the stuff
    with the wrapper if you need it.

    MapPoint 2006 with ActiveX

  5. #5
    jasanite is offline Member Yellow Belt
    Join Date
    Jul 2007
    Posts
    45

    Re: VS2008 b2 + Mappoint 2006

    Generell comment, yellow belt ... chappelle clip ...
    ohhh belt i want to .... on you

    But why do old posts have the new belt, feels
    like inconsistent data.

    "I don't want, none of the above, i want to ..."

    lalala

    Great comedy

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

    Re: VS2008 b2 + Mappoint 2006

    Quote Originally Posted by ttallskog View Post
    Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging it onto the center of the form it relocates its self to the upper left corner. Thought this might be normal so i tried to creata a map of europe but this gives a exception with no information.

    MapControl(ocx) is called "mapCtl"

    code:
    --------
    Map m;
    try{
    m = mapCtl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
    }
    catch(Exception ex){
    }


    Any idears?
    probably a problem of VS2008. For the place of the control, you can try to have a panel, put it on the panel and align it to client. Should work.

  7. #7
    ttallskog is offline Junior Member White Belt
    Join Date
    Aug 2007
    Posts
    2

    Re: VS2008 b2 + Mappoint 2006

    tnx, but still no luck.

    I tried changing the target platform from 3.5 to 2.0. 2.0 is used with vs2005 and mappoint workes on that platform?

    When runing it with the new settings i get a "ArgumetException" -"MapPoint failed to load. The cause of this failure is unknown."

    Is there something that i am missing in the settings or is this just a vs2008 problem or am I stupid?

    will keep trying. if i have to install vs2005

  8. #8
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    Re: VS2008 b2 + Mappoint 2006

    You're using a beta of VS, so I think that must be the prime suspect.
    (you're also brave, imho!)

    MP2006 works fine with VS2005 and .NET 2 - I've been doing this as an add-in with C#; and a simple proof-of-concept with VB.Net and the MapPoint control.

    There's a good walkthrough of how, in Chandu Thota's book (Programming MapPoint .NET I believe it is called - my copy isn't handy)


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  9. #9
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: VS2008 b2 + Mappoint 2006

    "Programming MapPoint in .NET" although I have heard it called other names - just as "MapPoint 2002 for Dummies" was sort of renamed "MapPoint for Dummies", I think there was another printing of MapPoint for Dummies but not AFAIK for Programming MapPoint in .NET.

    In the book, there was a small section for the Virtual Earth which had just come out and a lot for the MapPoint Web Service and MapPoint Location Server in addition to the great content for MapPoint (the CD product).... I still refer to the book occasionally when I go beyond something I've already written - or even if I've already written it - especially around DisplayDataMap, I like his good explanation of how to program that... the examples are in C# but it's close enough to VB.NET and VBA.

    Anyway this is all very much aside

    But check any/all explanations of how to use MapPoint and VS2005 and make sure you are at least doing that ?

    best,
    Eric

  10. #10
    jovo is offline Junior Member White Belt
    Join Date
    Nov 2007
    Location
    Holland MI
    Posts
    5

    Unhappy Re: VS2008 b2 + Mappoint 2006

    ttallskog: You are not going crazy. I have the same issues with the VS 2008 release on 3.5 release on vista, mappoint 2006. I've been programming mappoint since 2004 version and never had any issues with vs 2005. Does ANYBODY on this forum actually program with VS 2008
    I've linked this to the thread I have already started AGAIN. I hope programmers at ms see this cause right now, it aint workin!

    Mappoint 2006, C#, VS 2008, Vista, COM object problems

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint 2006
    By TFB in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-30-2008, 03:49 AM
  2. Difference between MapPoint 2006 and MapPoint 2006 Fleet
    By jlewis in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-21-2006, 09:18 AM
  3. Mappoint 2006
    By mhuslig in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-04-2006, 01:22 PM
  4. Mappoint 2006 GPS
    By rt in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 07-15-2006, 05:07 AM
  5. MapPoint 2006
    By Eric Frost in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-03-2006, 09:42 PM

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