regasm question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    #1

    regasm question

    I used the following statement to unregister a COM Class:

    regasm "path\myCOMLib. dll" /u

    Why does the class (myCOMClass) still show up in the References list in the
    VBA editor? (It however won't instantiate in VBA which is what I'd expect as
    it is unregistered.)

    What do I have to do to remove it from the References list?

    The class also continues to show up in the registry under under
    HKEY_CLASSES_RO OT, HKEY_LOCAL_MACH INE, etc. How do we remove it from the
    registry?

    Thanks
    Mark

    at the command prompt and it said it
    couldn't find the dll.

  • Mattias Sjögren

    #2
    Re: regasm question

    >I used the following statement to unregister a COM Class:[color=blue]
    >
    >regasm "path\myCOMLib. dll" /u
    >
    >Why does the class (myCOMClass) still show up in the References list in the
    >VBA editor? (It however won't instantiate in VBA which is what I'd expect as
    >it is unregistered.)
    >
    >What do I have to do to remove it from the References list?[/color]


    You have to unregister the typelib too by including the /tlb switch.


    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Mark

      #3
      Re: regasm question

      Thanks - that did the trick.

      Is there anything else I need to know about the unregistor process?


      "Mattias Sjögren" wrote:
      [color=blue][color=green]
      > >I used the following statement to unregister a COM Class:
      > >
      > >regasm "path\myCOMLib. dll" /u
      > >
      > >Why does the class (myCOMClass) still show up in the References list in the
      > >VBA editor? (It however won't instantiate in VBA which is what I'd expect as
      > >it is unregistered.)
      > >
      > >What do I have to do to remove it from the References list?[/color]
      >
      >
      > You have to unregister the typelib too by including the /tlb switch.
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.
      >[/color]

      Comment

      Working...