Re: dll problem: vb6 and vb.net writing smart tags

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 12/01/04


Date: Wed, 01 Dec 2004 09:57:02 -0600

On Tue, 30 Nov 2004 23:12:35 GMT, C Williams <nospam@thank.you> wrote:

¤ Hi,
¤
¤ In a nutshell, my question is: how do i make a dll that I compile from
¤ vb.net code register and work like one compiled as an ActiveX dll in VB6?
¤
¤ The IDE of my copy of visual basic.net does not provide me with the
¤ option to build a class library (dll)--instead I can use the command
¤ line (though I don't know how to replicate the "Register for COM
¤ Interop" option that is grayed-out in the IDE, which may be my problem).
¤
¤ I am trying to build smart tags (a dll that will be recognized by Office
¤ products--in my case Word and Excel). I can get them working
¤ successfully from VB6, but I really want to use .NET instead. From VB6,
¤ I did nothing more than A) compile an activeX DLL, and B) Manually add
¤ two neccessary entries in the Smart Tags key of the registry. At this
¤ point Word automatically recognizes my dll and executes the code within
¤ it as appropriate.
¤
¤ From VB.NET, I A) compile a dll from the command line, B) run "regasm
¤ dllname.dll", and C) Manually add the two entries in the Smart Tags key
¤ of the registry. However, Word does not recognize that my vb.net
¤ smarttag dll even exists, much less the words within it.
¤
¤ So, what is the VB6 compiler doing when it compiles an activeX DLL (I
¤ assume it's making certain registry entries?) and how do I replicate
¤ that from the command line for vb.net?
¤
¤ Thanks very much for any knowledge you have!

If this is an Office Add-in you may want to take a look at the following MS KB article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;302896

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)



Relevant Pages

  • Re: VBA and VSTO
    ... If you compile in VB6 with Global MultiUse than all you have to do is set a reference in Excel to your dll via Tools, References and you can access your functions in the dll directly. ... You will have to register the dll as well with Windows with Regsvr32, but that can be done quite simply in VBA. ...
    (microsoft.public.excel.programming)
  • Re: Using same interfaces for in-proc vs. out-proc
    ... I forgot to mention that when I compile the DLL after removing the TYPELIB ... and REGISTRY entries in the RC file I still get this message: ... for the COM part is in the same project as the rest of the EXE code. ...
    (microsoft.public.vc.atl)
  • dll problem: vb6 and vb.net writing smart tags
    ... my question is: how do i make a dll that I compile from ... vb.net code register and work like one compiled as an ActiveX dll in VB6? ... two neccessary entries in the Smart Tags key of the registry. ...
    (microsoft.public.dotnet.languages.vb)
  • dll problem: vb6 and vb.net writing smart tags
    ... my question is: how do i make a dll that I compile from ... vb.net code register and work like one compiled as an ActiveX dll in VB6? ... two neccessary entries in the Smart Tags key of the registry. ...
    (microsoft.public.vb.general.discussion)
  • Re: dll problem: vb6 and vb.net writing smart tags
    ... my question is: how do i make a dll that I compile from ... vb.net code register and work like one compiled as an ActiveX dll in VB6? ... two neccessary entries in the Smart Tags key of the registry. ...
    (microsoft.public.vb.general.discussion)

Loading