G
Guest
I have a COM object build in C#. I want to use this object in another COM object, built in C++. What's more, I want to return a pointer to the C# COM object from one of the methods of the C++ COM Object. Here's the fragment of my IDL
library BarLi
importlib ("foo.tlb"); // Contains definition of IFoo; generated from C# foo.dl
interface IBa
[id(1), propget] HRESULT GetFoo ([out, retval] IFoo**)
}
MIDL compiler does not like this, it says the IFoo is undefined. One way to get around this would be to create the IDL file for foo.tlb and import that instead of the TLB - can this be done and how? If not, how can I get around that error
Thanks
Dmitry
library BarLi
importlib ("foo.tlb"); // Contains definition of IFoo; generated from C# foo.dl
interface IBa
[id(1), propget] HRESULT GetFoo ([out, retval] IFoo**)
}
MIDL compiler does not like this, it says the IFoo is undefined. One way to get around this would be to create the IDL file for foo.tlb and import that instead of the TLB - can this be done and how? If not, how can I get around that error
Thanks
Dmitry