Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

Referencing Both NA and Europe in .NET

This is a discussion on Referencing Both NA and Europe in .NET within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    tnx!

    WOrks great, Nick. You're a genius! Thanks for the quick reply too.
    Ox

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MapPoint Europe
    By Eric Frost in forum News and Announcements
    Replies: 0
    Last Post: 02-10-2006, 06:11 PM
  2. Can Anyone Help ? ( vb.NET and MapPoint Europe )
    By GaryHoather in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 08-31-2005, 06:57 AM
  3. Using MP2002 Europe maps with MP2004 Europe
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 09-17-2004, 10:39 AM
  4. referencing data (pushpins)
    By uspickle in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-21-2004, 03:25 PM
  5. mappoint europe
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-04-2004, 05:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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