Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using old com objects

Using old com objects

Scheduled Pinned Locked Moved Visual Basic
csharpcomhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nick Seng
    wrote on last edited by
    #1

    I was previously developing an application using vb6 with some third party COMS. Now that I plan to upgrade to vb.net, I find that these COMs no longer works. Is there any way to make them work, short of looking for updated versions of these COMs( some of these third party companies are no longer operational) Thanx Notorious SMC


    The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
    Get your facts first, and then you can distort them as much as you please Mark Twain

    J 1 Reply Last reply
    0
    • N Nick Seng

      I was previously developing an application using vb6 with some third party COMS. Now that I plan to upgrade to vb.net, I find that these COMs no longer works. Is there any way to make them work, short of looking for updated versions of these COMs( some of these third party companies are no longer operational) Thanx Notorious SMC


      The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
      Get your facts first, and then you can distort them as much as you please Mark Twain

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Hi, yes you can reuse them,you need to create a COM runtime wrapper for them which can then be used as a proxy to your original COM objects. Use the "tlbimp.exe" tool which comes with Visual Studio .NET like this, tlbimp oldcom.dll /out:oldcom.asm.dll then you add a reference to the oldcom.asm.dll file to your .NET app. regards, DarkAngel

      N 1 Reply Last reply
      0
      • J Jonathan Darka

        Hi, yes you can reuse them,you need to create a COM runtime wrapper for them which can then be used as a proxy to your original COM objects. Use the "tlbimp.exe" tool which comes with Visual Studio .NET like this, tlbimp oldcom.dll /out:oldcom.asm.dll then you add a reference to the oldcom.asm.dll file to your .NET app. regards, DarkAngel

        N Offline
        N Offline
        Nick Seng
        wrote on last edited by
        #3

        Thanx man! you're a life saver!:rose: Notorious SMC


        The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
        Get your facts first, and then you can distort them as much as you please Mark Twain

        R 1 Reply Last reply
        0
        • N Nick Seng

          Thanx man! you're a life saver!:rose: Notorious SMC


          The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
          Get your facts first, and then you can distort them as much as you please Mark Twain

          R Offline
          R Offline
          rohancragg
          wrote on last edited by
          #4

          In fact, if you use VS.Net you dont even need to do this manually as by referencing a COM componant VS will notice what you are trying to do and do this for you...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups