rollasoc
2004-01-21 13:37:10 UTC
In C#
I have the following in a file in a DLL on its own. Which is registered
from Com Interop
public interface IOpenCloseSomething
{
bool Open();
bool Close();
}
This allows me to create a reference in my C++ DLL and get my class to
implement this interface. This works fine.
However what I actually want to do is in my C++ DLL have an interface
defined that uses IOpenCloseSomething as a parameter in function.
e.g
interface ITestingInterop : IDispatch{
[id(1), helpstring("method SendSomething")] HRESULT
SendSomething([out,retval] IOpenCloseSomething* OpenCloseSomethingObject);
};
The midl compiler complains of undefined symbol IOpenCloseSomething
How can I import my C# dll into my idl.
I've tried using importlib in the library section, but that didn't help my
interface.
Any tips?
Rollasoc
I have the following in a file in a DLL on its own. Which is registered
from Com Interop
public interface IOpenCloseSomething
{
bool Open();
bool Close();
}
This allows me to create a reference in my C++ DLL and get my class to
implement this interface. This works fine.
However what I actually want to do is in my C++ DLL have an interface
defined that uses IOpenCloseSomething as a parameter in function.
e.g
interface ITestingInterop : IDispatch{
[id(1), helpstring("method SendSomething")] HRESULT
SendSomething([out,retval] IOpenCloseSomething* OpenCloseSomethingObject);
};
The midl compiler complains of undefined symbol IOpenCloseSomething
How can I import my C# dll into my idl.
I've tried using importlib in the library section, but that didn't help my
interface.
Any tips?
Rollasoc