MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MappointControl OpenMap filename string length limitation

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 ...


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 06-30-2005
Junior Member
White Belt
 
Join Date: Dec 2004
Location: Melbourne, Florida
Posts: 4
MappointControl OpenMap filename string length limitation

I am using the MappointControl on a form in a Visual Basic program and there seems to be a limit on the length of the string passed to the OpenMap method. I am using the full path in the string since my ptm file is not in the MapPoint default directory. If the string length <= 126 the map opens correctly; but if the string length is >= 127, then I get the following error in the Visual Basic debugger:

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???
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 07-02-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
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
filename, length, limitation, mappointcontrol, openmap, string


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


All times are GMT -5. The time now is 11:38 AM.


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