Anonymous
12-06-2001, 02:24 AM
I am using Borland's C++Builder 4 to control MapPoint 2002. I call OLE functions using Variants. The following code used to work in MapPoint 2001...
Variant Way = Waypoints.OleFunction("Add", Pin, "My Waypoint");
Way.OlePropertySet("PreferredDeparture", "12:00");
MapPoint 2002 is now complaining about the time format. I've tried converting to a double with the value of 0.5 to simulate VB's Date type, but with no luck!
Variant Way = Waypoints.OleFunction("Add", Pin, "My Waypoint");
Way.OlePropertySet("PreferredDeparture", "12:00");
MapPoint 2002 is now complaining about the time format. I've tried converting to a double with the value of 0.5 to simulate VB's Date type, but with no luck!