Is there a possibility to make forward declaration of an interface in MIDL?
Printable View
Is there a possibility to make forward declaration of an interface in MIDL?
Hi,
Sure. See this sampleinterface IInterface2;
//
[
object,
uuid(...),
helpstring("IInterface Interface"),
pointer_default(unique)
]
interface IInterface : IUnknown
{
[propget, helpstring("property Prop")] HRESULT Prop([out, retval] IInterface2 * *pVal);
}
//
[
object,
uuid(...),
helpstring("IInterface2 Interface"),
pointer_default(unique)
]
interface IInterface2 : IUnknown
{
//...
}
Regards,
Emi.
...
error MIDL2337 : unsatisfied forward declaration : IUsers [ Parameter 'pVal' of Procedure 'get_Users' ( Interface 'IDaemon' ) ]
Thank you,
Anatoly.
Strange... I've used and it work. Could you please show some code?
Regards,
Emi.
It works.
Thank you,
Anatoly.