how can i use mappoint ocx with delphi desktop applications?

joesebi
07-01-2003, 11:40 AM
Hi,

We would like to use mappoint OCX with our delphi desktop applications. We have MapPoint 60 Day trial version. I installed that mappoint component to delphi 6. i am getting one error message 'no such interface supported' when i am placing that component over a form. Should i by an evaluvation version or the original ocx? please help to find out a solution.

Thanks

Joe

Anonymous
07-06-2003, 03:57 PM
We have jusr released version 2 of our VCL wrapper component for Delphi. This allows access to a lot of the functionality of the ActiveX control. Adds interactive maps, etc.

http://www.gkconsulting.co.uk and look at the "Products" section

matt1168
07-07-2003, 08:03 AM
see http://www.mp2kmag.com/articles.asp?ArticleID=65&key=delphi.example

this gives you full access to the ocx

joesebi
07-08-2003, 01:25 PM
Hi

The initial part of the artlicle was helpful. i finished the step (1) successfully. but i tried the step(2) & step (3).

I am using the Trial version of mappoint 2002. Do i need to set up the 'Auto Connect' property of TApplication to TRUE. There is no error message here but i couldnt see the map.

Here is the code for step (3).

Var
vGUID : TGUID;
begin
OleContainer1.CreateObject('MapPoint.Map.EU.9',FAl SE);
OleContainer1.DoVerb(1);
OleContainer1.OleObjectInterface.GetUserClassID(vG UID);
FMap := IDispatch(OleContainer1.OleObject) as _Map;
end;


I am getting an error message like 'Invalid Class String' for OleContainer1.CreateObject('MapPoint.Map.EU.9',FAl SE);

how can i find out the OleClassName for MapPoint?

I added the olecontainer and double clicked the olecontainer and imported the mappoint. if i am double clicking again then i could see the mappoint with all menus and tools.

Thanks
Joe

Anonymous
07-09-2003, 07:33 AM
Hello,

If you have the trial version of NA, try 'MapPoint.Map.NA.9'

Greetings, Jack.

matt1168
07-09-2003, 11:12 AM
Add a _tmap component and call _TMap1.Connect after you previous code this will then trigger the events within _tmap1

 
Web mp2kmag.com
mapforums.com