how to reference COM dll from C# without the COM dll being registered in the registry?

M

Marc Gravell

Registration-free COM is probably a much better option.

It depends on the exact requirement; for instance, if the issue is
that [due to licencing etc] the COM component can't be available on
all development desktops (but will be on production machines), and you
simply need the project to *build*, then "tlbimp" is a workable answer
(of course you also need to fail gracefully if the component isn't
there, usually by using a mock). [this is a problem I've had to work
around a few times].

If the issue is that you need to *deploy* the COM without registering
it - the yes, registry free COM is the answer.

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top