MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Drivetimezone in MS C++

This is a discussion on Drivetimezone in MS C++ within the MapPoint Desktop Discussion forums, part of the Map Forums category; How do you convert an amount of time to something that AddDriveTimeZone will accept ? In VB you would use ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2004
Junior Member
White Belt
 
Join Date: Jun 2004
Posts: 5
Drivetimezone in MS C++

How do you convert an amount of time to something that AddDriveTimeZone will accept ?
In VB you would use (amount of time) * geoOneMinute, but in the C++ wrapper classes geoOneMinute is undefined.
The function AddDriveTimeZone takes time as a double, so I gues that the constant geoOneMinute is just a factor...

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-22-2004
Junior Member
White Belt
 
Join Date: Jun 2004
Posts: 5
Solution

When you create a drivetimezone you can specify the number of minutes in a range from 1 to 999 minutes (* geoOneMinute).
The function AddDriveTimeZone will not accept values higher than 693 minutes, when you don't multiply with the geoOneMinute constant.
If you don't use geoOneMinute for some reason, you will have to divide your #minutes with 1.44 to get the right scale. The values 1-693 then equals 1-998 MapPoint minutes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
drivetimezone


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
DriveTimeZone Delphi Anonymous MapPoint Desktop Discussion 0 10-20-2004 04:56 AM


All times are GMT -5. The time now is 10:08 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



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