tags:

views:

53

answers:

1

Ok, I've created a c# dll, made all its interface and methods all ComVisible(true). Added it to the GAC using gacutil, then registered it using regasm and created a type library tlb file.

Now I have another c# project that I want to make calls to that com object, how can I do this? What would the code roughly look like to import the com object then use its calls?

+1  A: 

First of all, why do you want to call that C# Assembly (that you've made comvisible) in your other C# project via COM ? That is not necessary ...

Ontopic: If you've created a tlb file, then you shouldn't do anything special. You can just reference the 'runtime callable wrapper' of the c#assembly you've created.

Frederik Gheysels
Ok, I understand that the user might as well just add the other c# dll as a reference to their project than go through COM, but what I basically want to do is test the COM calls! Without learning C++! Is there a way?How do I reference the runtime callable wrapper?
David