OT: MIDL in MSVC++ 7.0

I know this is off-topic but my app’s heavily using OpenGL and I don’t know where else to post the question…

If I have two embedded-MIDL interfaces like

[
midl-stuff
]
__interface IOne {
HRESULT func2([in] ITwo *param);
};

[
midl-stuff
]
__interface ITwo {
HRESULT func1([in] IOne *param);
};

Then I get an unresolved MIDL error for the ITwo parameter in the first interface. I know I have to prototype the interface before I use it, to avoid C++ errors too, but

[
export
]
__interface ITwo;

doesn’t solve the MIDL error. I’ve looked through MSDN and can’t find anything at all.

I’ve tried using idl-quotes from embedded MIDL but that doesn’t work either.

Any ideas?

Thanks

http://www.thecodeproject.com

post your question there…

Try putting

coclass ITwo;

at the beginning