Converting assembly to COM
VS 2005
Hi All
I'm a bit confused by all this.
I am writing an api which needs to be a COM type so it can be accessed with non managed code. I am not really sure how to progress.
Basically I have a solution which contains 2 projects. The first project (P1) contains most of the meat with a large number of namespaces while the other (P2) contains a single class which I want to make the public interface. This project references the other.
How do I progress with this ?
I realise I have to use the regasm.exe to create a type library for (P2) but what about the reference to the P1 ? What happens to this dll ?
Can anyone point me in the right direction ?
Re: Converting assembly to COM
Look on the internet for COM INTEROP (simple example). That should help, because you could write pages about it.
In you example P1 shouldn't be referenced to by COM, placing it in the same directory as P2 (or in the GAC) is enough