-
February 22nd, 2001, 04:23 AM
#1
Forward declaration in MIDL
Is there a possibility to make forward declaration of an interface in MIDL?
-
February 22nd, 2001, 04:31 AM
#2
Re: Forward declaration 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.
Regards,
Emanuel Vaduva
-
February 22nd, 2001, 04:48 AM
#3
Ok, Midl says...
...
error MIDL2337 : unsatisfied forward declaration : IUsers [ Parameter 'pVal' of Procedure 'get_Users' ( Interface 'IDaemon' ) ]
Thank you,
Anatoly.
-
February 22nd, 2001, 04:54 AM
#4
Re: Ok, Midl says...
Strange... I've used and it work. Could you please show some code?
Regards,
Emi.
Regards,
Emanuel Vaduva
-
February 22nd, 2001, 04:56 AM
#5
I am sorry, it works. Thank you!
It works.
Thank you,
Anatoly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|