MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




how can i use mappoint ocx with delphi desktop applications?

This is a discussion on how can i use mappoint ocx with delphi desktop applications? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, We would like to use mappoint OCX with our delphi desktop applications. We have MapPoint 60 Day trial version. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed 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 07-01-2003
Junior Member
White Belt
 
Join Date: Jul 2003
Posts: 6
how can i use mappoint ocx with delphi desktop applications?

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
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-06-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
MapPoint OCX in Delphi

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-07-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 14
Send a message via MSN to matt1168
see http://www.mp2kmag.com/articles.asp?...delphi.example

this gives you full access to the ocx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-08-2003
Junior Member
White Belt
 
Join Date: Jul 2003
Posts: 6
I need more help

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-09-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hello,

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

Greetings, Jack.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-09-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 14
Send a message via MSN to matt1168
Add a _tmap component and call _TMap1.Connect after you previous code this will then trigger the events within _tmap1
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
applications, delphi, desktop, mappoint, ocx


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
MapPoint 2004 (Desktop version) and Web application William MapPoint 2006/2009 Discussion 7 03-24-2006 02:05 AM
GPS data different in Mappoint then in other applications? Detonator MapPoint 2006/2009 Discussion 1 02-22-2006 11:19 AM
Web applications and mappoint dantheman MapPoint 2006/2009 Discussion 2 01-17-2005 11:58 AM
MapPoint Control in Web applications Anonymous MapPoint 2006/2009 Discussion 1 01-04-2005 03:09 AM
Web Applications & MapPoint 2002 Anonymous MapPoint 2006/2009 Discussion 1 03-01-2003 05:34 PM


All times are GMT -5. The time now is 08:15 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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 55 56 57 58 59