Community of VE/MapPoint Users and Developers
This is a discussion on Delphi-MapPoint Type Library within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi EveryBody I'm trying to use MapPoint Inside my delphi application. I've read this very useful article: Using MapPoint In ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Delphi-MapPoint Type Library Hi EveryBody I'm trying to use MapPoint Inside my delphi application. I've read this very useful article: Using MapPoint In Delphi : it did work two months ago, but it does no more now!! I followed all the instructions in the article, but when I try to run my application, I get the following error: Code: [Pascal Error] MyProject.dpr(14): E2018 Record, object or class type required Here is the code of Myproject: program MyProject; uses Forms, Main in 'Main.pas' {FrmMain}, MapPoint_TLB in 'MapPoint_TLB.pas'; {$R *.TLB} {$R *.res} begin Application.Initialize; Application.CreateForm(TFrmMain, FrmMain); Application.Run; end. Besides, I can't find the activex tab in the component palette (neither MapPoint's TMap & Co, wherever I try to import the TLB?) Where am I mistaking? Do I have to start BDS in .Net Personality to use MapPoint? Thnk u for your help |
| |||
| Re: Delphi-MapPoint Type Library
Hi, You dont have to include the TLB in your project. It only has to be in the uses clause of the units that really use it. Line 14 is Application.Run ? If so the the form's constructor runs without errors (but the problem can be over there as well). Set some breaks in the begin of the following events of your main form: FormCreate FormShow FormActivate Also if you post custom messages in the FormCreate event you should set a break there as whell. Then you come to the line of the offending code.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Delphi-MapPoint Type Library Quote:
![]() I'm still learning so sorry for the 'wired' questions I'll do that right now. The problem is that I remember I Used to drag & drop the TMap component from the component palette on my forms and 'handle it' by code. Now, it's no more possible: why that? I'm using BDS 2006 and mappoint 2006 (I tested it for the first time with BDS 2005 and MapPoint 2004): does this make any difference or explain the problem? |
| |||
|
That's AWESOME ![]() I just solved my problem (almost). The fact is that I tried to import the TLB in the project (and was automatically included in the current project). I did't included Mappoint_TLB in the units. But I still can't find TApplication, TMap in the component palette. Anyway, I use mappoint with the OleContainer and IT ROCKS If I manage to make a useful application (hopefully), I'll share it here. Again: THANKS EVERYBODY: this forum is GREAT. |
| |||
| Re: Delphi-MapPoint Type Library
Hi Michel, Quote:
Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Delphi-MapPoint Type Library
Hi, Quote:
You can also solve it by renaming the Application object to something else in the TLB. This was what I did. I think I called it _Application or __Application
__________________ 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 |
| MapPoint Library Redistribution | Hamaze | MapPoint 2006/2009 Discussion | 1 | 02-24-2005 12:38 PM |
| mppoint object library | Anonymous | MP2K Magazine Articles | 1 | 10-21-2004 06:19 AM |
| I can't find the MapPoint COM library | Anonymous | MapPoint Web Service and Virtual Earth | 4 | 10-05-2004 06:16 AM |
| How do you read from a FindResults type in delphi? | matt1168 | MapPoint 2006/2009 Discussion | 3 | 02-27-2004 07:57 AM |
| Control vs. Object Library | Labtek | MapPoint 2006/2009 Discussion | 0 | 05-24-2003 12:39 AM |
Cheap Flights to Benidorm
Book cheap flights to Benidorm with Holiday Hypermarket. Whether Summer or Winter Benidorm is a great destination.
Flights to Italy
Find cheap flights to Italy on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Italy.
Holiday Italy
A Holiday in Italy can mean many different things to many different people. This diverse country has an abundance of art, wine, food and stunning beaches. Book online today.
Bahamas Holidays
Bahamas Holidays offer pure blue skies, soft white beaches and the holiday of a lifetime. Visit us for a great deal to the Bahamas.
Greece
Greece covers a large area and as a result there is an abundance of things to do, see and taste. You can relax on a beach, visit ancient sites or make a trip to one of the islands like Corfu, Crete or Rhodes.
Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.
Holidays to Florida
Sun and sea! Get info on holidays to Florida, only at On The Beach.