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

addlines problem

This is a discussion on addlines problem within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm programming an activex mappoint control in visual C/MFC... where i show the route of a truck. I'm using addshape ...

  1. #1
    javimn is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    3

    addlines problem

    I'm programming an activex mappoint control in visual C/MFC... where i show the route of a truck.
    I'm using addshape to show the origin and destination of the truck as a rectangle with text.... and pushpins (points) to show the journey of the truck.

    I'm trying to join all the points of the journey by addlines from point1 to point2, it works fine until i paint more than 12 lines then the control hangs!

    i tried with addpolyline() but i don't know how to do it with visual C because methods requires variants or arrays of variants.

    Some help? thanks.

  2. #2
    jdwhytie is offline Member Yellow Belt
    Join Date
    Jun 2004
    Posts
    37
    Is there a reason that you're not using the Route and Waypoint objects in mappoint?

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    i dont use a object route/waypoint because i dont use mappoint to calculate routes but to show the diferent locations that a GPS pass to a database and that i show in an activeX control by web.

    please, correct me if i'm wrong... im a beginner im mapoint programming.

    thanks!

  4. #4
    jdwhytie is offline Member Yellow Belt
    Join Date
    Jun 2004
    Posts
    37
    in order to use AddPolyline you need an array of locations, you sound as if you already have your locations, could you just place those into an array and use that as reference for your line?

  5. #5
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    I covered C++ VARIANTs in:

    http://mp2kmag.com/a106--c++.without.mfc.mappoint.html


    Not wanting to do things the "easy" (and bloated) way, I avoided MFC...



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

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