Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Mappoint in OleContainer problem //Delphi within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I just started to play with mappoint 2002 trial & Delphi 7... So with the helph of this site ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mappoint in OleContainer problem //Delphi I just started to play with mappoint 2002 trial & Delphi 7... So with the helph of this site I already get a map in my delphi form and I can zoom and pan.... Here's my code: (OleContainer, map dropped on a form) procedure TForm1.FormShow(Sender: TObject); var vGuid : TGuid; FMap : _Map; begin OleContainer_Map.CreateObject('MapPoint.Map.EU.9', FALSE ); OleContainer_Map.DoVerb(1); OleContainer_Map.OleObjectInterface.GetUserClassID (vGuid); FMap := IDispatch(OleContainer_Map.OleObject) as _Map; Map1.ConnectTo(FMap); end; procedure TForm1.Button1Click(Sender: TObject); begin Map1.ZoomIn; end; procedure TForm1.Button2Click(Sender: TObject); begin Map1.pan(geoEast,0.5); end; But when I close the Form I get allways the following message: Application Error: Exception EAccesVilation in module OLE32.dll at... Any idea?? (I'm not familiar with the OleContainer...) |
| ||||
|
I'm not a Delphi developer, but there are some samples in the Articles section of this site that might be of use to you.. Also, there's some discussions in the forums. You might employ Google to list it all in one swoop: http://www.google.com/search?q=site:...g%2Ecom+Delphi Happy Mapping! Eric
__________________ |
| |||
|
Hi Eric- I am a Delphi Developer and use the code similar to you. The difference is that I don't do a connect. Still seems to work well here. Code: OleContainer1.CreateObject('MapPoint.Map.NA.9',False);
OleContainer1.DoVerb(1);
OleContainer1.OleObjectInterface.GetUserClassID(vGuid);
mpMap := IDispatch(OleContainer1.OleObject) as _Map;
|
![]() |
| Tags |
| mappoint, olecontainer, or or delphi, problem |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint in OleContainer problem //BCB | tomek_tomek | MapPoint 2006/2009 Discussion | 3 | 08-16-2005 02:54 PM |
| Borland C++ Builder : Using Mappoint over olecontainer | Anonymous | MapPoint 2006/2009 Discussion | 2 | 02-14-2005 04:04 AM |
| OleVariant Problem with Delphi 6 | top204 | MapPoint 2006/2009 Discussion | 3 | 04-29-2004 04:51 AM |
| Delphi OleContainer Resize Problem. | Sheridan | MapPoint 2006/2009 Discussion | 5 | 12-19-2003 05:50 AM |
| Delphi OleContainer problems | pafreshney | MapPoint 2006/2009 Discussion | 6 | 09-15-2003 01:50 PM |
Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...