MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




OLE Delphi 6 Novice

This is a discussion on OLE Delphi 6 Novice within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi New to MapPoint and I need a quick kick start please. I want to bring up a up Map ...


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

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-20-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 4
OLE Delphi 6 Novice

Hi

New to MapPoint and I need a quick kick start please. I want to bring up a up Map on a Form in Delphi 6. The following Code Example I used failed with Invalid Class String in CreateObject:-

var
vGuid: TGuid;
OleContainer: TOleContainer;
begin
OleContainer.CreateObject('MapPoint.Map.EU.9', False);
OleContainer.DoVerb(1);
OleContainer.OleObjectInterface.GetUserClassID(vGu id);
FMap := IDispatch(OleContainer.OleObject) as _Map;
FMap:= Application1.ActiveMap;
FMap.Application.Visible := TRUE;
FMap.GoToLatLong(51, -2, 100);
end;

Many Thanks in Anticipation for your Assistnts

Regards Henry
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-20-2005
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
There are a couple articles that should help --
Using MapPoint in Delphi
and
Delphi Address Verifier

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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-21-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 4
Hi

Does anybody know the OleClassName for Mappoint 2004, its was 'MapPoint.Map.EU.9 for 2002.
Thanks in anticipation for your reply

Regards Henry
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-21-2005
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
I believe it would be 11 for 2004..

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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-21-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 4
Hi

That info (11) and fixing some self inflicted problems of mine has me up and running. Many Thanks

Regards Henry
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
delphi, novice, ole


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
Using MP2004 with Delphi Anonymous MapPoint 2006/2009 Discussion 13 03-02-2005 08:50 AM
DisplayDataMap in Delphi 7 Anonymous MapPoint 2006/2009 Discussion 0 12-17-2004 06:59 AM
Delphi Anonymous MapPoint 2006/2009 Discussion 2 12-18-2003 12:11 PM
'AddCommand' + Delphi stuarth MapPoint 2006/2009 Discussion 0 04-09-2003 10:18 AM
Mappoint With Delphi 5 stuarth MapPoint 2006/2009 Discussion 1 04-08-2003 11:21 AM


All times are GMT -5. The time now is 08:28 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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