MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Drivetimezone in MS C++

This is a discussion on Drivetimezone in MS C++ within the MapPoint 2006/2009 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 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #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 2006/2009 Discussion 0 10-20-2004 05:56 AM


All times are GMT -5. The time now is 05:29 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
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