tlbinf32.dll in a 64bits .Net application

前端 未结 1 613
灰色年华
灰色年华 2021-02-10 20:41

It seems there is no 64 bits version of tlbinf32.dll, this (old) COM DLL is used to extract informations of COM components. (see this SO answer )

I need to

1条回答
  •  生来不讨喜
    2021-02-10 21:27

    • open Windows' "Component Services"
    • open nodes to "My Computer/COM+ Applications"
    • right-click, choose to add a new Application
    • choose an "empty application", name it "tlbinf" for example
    • make sure you choose "Server application" (means it will be a surrogate that the wizard will be nice to help you create)
    • choose the user you want the server application to run as (for testing you can choose interactive user but this is an important decision to make)
    • you don't have to add any role, not any user
    • open this newly created app, right-click on "Components" and choose to add a new one
    • choose to install new component(s)
    • browse to your tlbinf32.dll location, press "Next" after the wizard has detected 3 interfaces to expose

    That's it. You should see something like this:

    Now you can use the same client code and it should work. Note the performance is not comparable however (out-of-process vs in-process).

    The surrogate app you've just created has a lots of parameters you can reconfigure later on, with the same UI. You can also script or write code (C#, powershell, VBScript, etc.) to automate all the steps above.

    0 讨论(0)
提交回复
热议问题