Reply to Thread

Post a reply to the thread: Register .NET as COM server

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 02-11-2014, 04:53 AM
    linder

    Re: Register .NET as COM server

    Jon,

    Could you please test the pre-release? Does it work now?

    Thanks,
    Friedrich
  • 02-10-2014, 06:17 AM
    linder

    Re: Register .NET as COM server

    Hello,

    Item is still in review. Under certain circumstances, the runtime calls regasm with:

    "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\reg asm.exe" /codebase /tlb: "C:\Program Files\LA Solutions\DgnChronographer\DgnChronographer.tlb" "C:\Program Files\LA Solutions\DgnChronographer\DgnChronographer.dll"

    But it should look like:

    "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\reg asm.exe" "C:\Program Files\LA Solutions\DgnChronographer\DgnChronographer.dll" /codebase /tlb: DgnChronographer.tlb

    Perhaps this causes the issue in your case.

    Friedrich
  • 02-10-2014, 05:40 AM
    PodHunter

    Re: Register .NET as COM server

    Quote Originally Posted by linder View Post
    regasm /tlb:NETServer.tlb NETServer.dll
    Thanks! Doesn't the DLL require the /codebase switch?
  • 02-07-2014, 07:25 AM
    linder

    Re: Register .NET as COM server

    Yes, the installer runtime automatically makes use of the two switches. For example, it executes the following:

    regasm /tlb:NETServer.tlb NETServer.dll

    The user has to install both .tlb and .dll files.

    Friedrich
  • 02-07-2014, 07:18 AM
    PodHunter

    Register .NET as COM server

    When one uses .NET to create a DLL that is a COM server, .NET creates a .TLB file of the same name. .NET doesn't integrate the TLB with the implementation file as it does when one builds an ATL COM server.
    The registration processes uses two switches:
    \codebase
    \tlb

    codebase specifies the DLL
    tlb specifies the TLB

    I'll mail a ZIP with the .sb8 (work in progress) .dll and .tlb files, along with the register.bat file.
  • 02-07-2014, 03:02 AM
    linder

    Re: Register .NET as COM server

    Jon,

    Would it be possible for you to send the files to our support [at] lindersoft [dot] com so we can check this? Could you also send your .sb8 project so we can see how you register?

    In theory, the "COM Interop Register (/codebase) .NET Assembly immediately" option should do it.

    Thanks,
    Friedrich
  • 02-06-2014, 12:49 PM
    PodHunter

    Register .NET as COM server

    I have a .NET DLL and an associated TLB. The command line to register the DLL as a COM server is...
    %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\re gasm /codebase DgnChronographer.dll /tlbgnChronographer.tlb

    I found the Register File Operation macro, but I don't see how to specify the /tlb and /codebase switches as shown above.

    Regards, Jon Summers

Posting Permissions

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