I have an interface define in C#, for example:
[ComVisible(true), Guid("E37EBA3C-FB2E-4D4A-8A90-F6FAA99E85C9")]
public interface TestClass
{
public void test_function();
}
I want to include this in a library define in IDL. I tried to achieve this by generating a .tlb from C# interface and include it with importlib. However, I do not see this interface in my library when I compile my idl file, but I see all of the other interfaces that I defined in this library through importing their idl files.
import "AnotherClass.idl"
library COMMONPROGRAMS{
importLib(stdole32.tlb)
importLib(stdole2.tlb)
importLib(TestClass.tlb)
interface TestClass;
interface AnotherClass;
}
In summary, I want to know:
- Is it possible to include a C# interface in a IDL library?
- If so, how can I do this?
All answers are welcome. Thank you in advance for any answers submitted.