Registration COM-Interop (.tlb) including Assembly (.dll) references

720 views Asked by At

I'm trying to register my Classlib.dll for using COM interop with the regasm.exe tool. In general this is not a problem.

like this: > regasm.exe MyAsm.dll /tlb: MyAsm.tlb

But now I use a .dll reference in my classlib project. The general registration still works but then the dll reference gets lost and the functions are useless.

I'm sure there is a simple solution for this as the automatic registration via VisualStudio Build settings works fine.

So how can I manually adjust my script?

My current approaches are:

  1. uing the option: regasm /asmpath
  2. use of the tools: Tlbexp.exe, Tlbimp.exe

My current information sources:

Since the documentaries are unfortunately very limited and I am new to the COM topic it would be great if you could help me.

0

There are 0 answers