PDA

View Full Version : OT: MIDL in MSVC++ 7.0



thefirstbigd
08-01-2002, 06:21 AM
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

AdrianD
08-01-2002, 07:20 AM
http://www.thecodeproject.com

post your question there...

Coconut
08-01-2002, 08:02 AM
Try putting

coclass ITwo;

at the beginning