Community of VE/MapPoint Users and Developers
This is a discussion on MappointControl OpenMap filename string length limitation within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using the MappointControl on a form in a Visual Basic program and there seems to be a limit ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MappointControl OpenMap filename string length limitation Run-time error '16385': The file "..." cannot be located. Retype the filename and try again. The file exists! If I use MapPoint outside the VB program it opens fine. I have carefully debugged this and the only difference is the length of the string passed to OpenMap method. There does not seem to be a way to change the default directory to avoid using the full path. The DefaultFilePath and Path properties of the MapPoint Application and Map objects are both read-only. Any comments??? |
| |||
|
Hi, max filename len is 255, but they probably wrote a bug in the interface using a signed variable instead of unsigned. so it flows over at >127. A workaround is that you uste SUBST to substitute a drive name for the path that you wants to pass. another way is to map a network drive to it.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| filename, length, limitation, mappointcontrol, openmap, string |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data Point limitation | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-01-2005 01:19 PM |
| InvalidCastException in OpenMap | kdulaney | MapPoint 2006/2009 Discussion | 4 | 02-03-2005 06:20 PM |
| 50,000-record limitation | Anonymous | MapPoint 2006/2009 Discussion | 2 | 02-06-2004 11:41 AM |
| OpenMap in delphi ? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-13-2003 12:23 PM |
| I have a need to find a whole length of a road is .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-12-2001 04:53 AM |