MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Referencing Both NA and Europe in .NET

This is a discussion on Referencing Both NA and Europe in .NET within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Anyone know how to reference and make calls to the COM libraries for both north america and europe? You can't ...


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 03-04-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Referencing Both NA and Europe in .NET

Anyone know how to reference and make calls to the COM libraries for both north america and europe?

You can't directly reference both in a vb.net project due to name conflicts, so I used tlbimp to create a .net dll wrapper for the north american version, and referenced that. In code it all looks good, but you try and run it, it fails saying object library or dependency not found.

Ideas?

Thanks,
Nick.
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 03-05-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
figured it out

Use the tlbimp utility but DONT rename your output dll (leave it as mpna82.dll, and leave it in the same path as mpna82.tlb) and reference that library.
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 03-09-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
help, nick

Nick,
I also need to reference both EUR and NA object models.

Can you give me a kinda step-by-step? First I need to know how to generate a .tlb file (I think).

Thanks in advance!
Ox
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 03-09-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Reference both dlls in .NET

I referenced the Europe version the regular way (by adding it in the references section of my project).

Then in the visual studio command prompt navigate to the path that contains mpna82.dll (I think program files\windows mappoint\mpna82.dll) and type "tlbimp mpna82.tlb /out:mpna82.dll" (without quotes). Reference the mpna82.dll in the references section of your project. Now you can make calls to the europe version from namespace MapPoint and call the NA version from namespace mpna82.

Hope this helps...Nick.
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 03-09-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
tnx!

WOrks great, Nick. You're a genius! Thanks for the quick reply too.
Ox
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
europe, net, referencing


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 Europe Eric Frost News and Announcements 0 02-10-2006 05:11 PM
Can Anyone Help ? ( vb.NET and MapPoint Europe ) GaryHoather MapPoint 2006/2009 Discussion 6 08-31-2005 05:57 AM
Using MP2002 Europe maps with MP2004 Europe Anonymous MapPoint 2006/2009 Discussion 4 09-17-2004 09:39 AM
referencing data (pushpins) uspickle MapPoint 2006/2009 Discussion 0 01-21-2004 02:25 PM
mappoint europe Anonymous MapPoint 2006/2009 Discussion 2 01-04-2004 04:10 AM


All times are GMT -5. The time now is 09:14 AM.


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