Community of VE/MapPoint Users and Developers
This is a discussion on c#.. Exception (simple code and method) within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Code: ViewByHeightWidth[] myViews = new ViewByHeightWidth[1]; myViews[0] = new ViewByHeightWidth(); myViews[0].CenterPoint = new LatLong(); myViews[0].CenterPoint.Latitude = 40; myViews[0].CenterPoint.Longitude = -120; ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| c#.. Exception (simple code and method) Code: ViewByHeightWidth[] myViews = new ViewByHeightWidth[1]; myViews[0] = new ViewByHeightWidth(); myViews[0].CenterPoint = new LatLong(); myViews[0].CenterPoint.Latitude = 40; myViews[0].CenterPoint.Longitude = -120; myViews[0].Height = 200; myViews[0].Width = 300; Pushpin[] myPushpins = new Pushpin[1]; myPushpins[0] = new Pushpin(); myPushpins[0].IconDataSource = "MapPoint.Icons"; myPushpins[0].IconName = "3"; myPushpins[0].LatLong = myViews[0].CenterPoint; myPushpins[0].Label = "Center"; myPushpins[0].LabelNearbyRoads = true; MapSpecification mapSpec = new MapSpecification(); mapSpec.DataSourceName = "MapPoint.NA"; mapSpec.Views = myViews; mapSpec.Pushpins = myPushpins; render = new RenderServiceSoap(); render.Credentials = new System.Net.NetworkCredential(User,Pass); render.PreAuthenticate=true; MapImage[] mapImages = render.GetMap(mapSpec); Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImages[0].MimeData.Bits)); pictureMapPoint.Image=bMap; Code: Bitmap bMap = new Bitmap(new System.IO.MemoryStream(mapImages[0].MimeData.Bits)); This same code works fine in a WindowsApplication, but not in the Pocket application tha I need. Does anyone know why?? can you prove this method?? Please help me.. thanks.. |
| |||
|
Hi, Possible some of the functions does just not work on pocket pc. If your application work on windows then it seems ok to me, if it does not work on pocket pc then some of the functions are just not pocket compatible. I'm sorry if this does not give any help
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OutOfMemory Exception | Gianmaria | MapPoint 2006/2009 Discussion | 1 | 01-24-2006 12:26 PM |
| Regarding COM exception at the end of execution... | Anonymous | MP2K Magazine Articles | 0 | 05-12-2005 12:23 PM |
| AddPushPin() throws exception in VC++ | radboudp | MapPoint 2006/2009 Discussion | 2 | 01-20-2005 06:49 PM |
| Unknown Host Exception | amitsh | MapPoint 2006/2009 Discussion | 2 | 11-03-2004 11:18 PM |
| Simple VB6.0 code for Map Point 2002 | danleybell | MapPoint 2006/2009 Discussion | 1 | 09-25-2002 05:57 PM |
Flights to Germany
For flights to Germany book online with Holiday Hypermarket. Why not book some great value accommodation too? Check out how easy it is.
Italy Weather
Check Italy Weather before you travel. We provide information on Italy including weather, flights and accommodation.
Cheap Holiday Turkey
Booking a cheap holiday to Turkey doesn't have to be at the expense of enjoyment. Dealchecker.co.uk searches holidays from the leading UK Tour Operators.
Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.
Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.
Cheap Holiday
For the holiday of your life that is cheap enough to afford with ease, visit Travel.co.uk
Cheap Portugal Holidays
Hotels of all ratings! Find information on cheap Portugal holidays at On The Beach!