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

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: C Williams (nospam_at_thank.you)
Date: 12/01/04


Date: Wed, 01 Dec 2004 17:38:50 GMT

Thanks, Tom. I might not be understanding it correctly, but the
documentation says:

Tlbexp.exe generates a type library but does not register it. This is in
contrast to the Assembly Registration tool (Regasm.exe), which both
generates and registers a type library. To generate and register a type
library with COM, use Regasm.exe.

Because I think I need to get my library registered, I tried adding the
/tlb flag to regasm, but again to no avail.

Tom Shelton wrote:

> On 2004-11-30, 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!
>>
>>-Casey
>
>
> As a further note, there is information on this in the documentation...
> Look for information on COM Callable Wrappers and tlbexport.
>



Relevant Pages

  • RE: Registering a custom DLL after deployment - advice?
    ... Register property to vsdraCOM - and leave the output as content ... I added the dll and the tlb and set the build action to ... publishing and invoke the .bat file. ... The custom dll is for the Access ADP. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Self registering a COM dll in a VS2003 Windows setup project...
    ... Most of the Register settings extract the settings at build time and put the ... at install time. ... code in that DLL is doing something that isn't being put into the MSI file. ... I have not been able to make a customized Redemption dll ...
    (microsoft.public.dotnet.framework.setup)
  • Re: IMailRuleClient wont work!!!
    ... Does your DLL properly export DllRegisterServer and DllGetClassObject? ... > So i have tested manually register the COM. ...
    (microsoft.public.pocketpc.developer)
  • RE: COM Addin dll and HKEY_LOCAL_MACHINE
    ... registry for HKEY_LOCAL_MACHINE (HKLM). ... associate the designer objects with HKLM and compile the DLL so that it would ... Outlook ] ... > designer to register in HKEY_CURRENT_USER. ...
    (microsoft.public.vb.com)
  • Re: admin rights to specific files
    ... You use the Regsvr32 tool to register and unregister object ... ..dll files as command components in the registry. ... Get IT Done Reregister DLLs in the Windows Registry with Regsvr32 ...
    (microsoft.public.windowsxp.general)