D
Dejun Yang
I am learning ATL.NET.
Here is the code. Struct PD_TYPE is defined.
When building, I got the following error msg.
"d:\playground\dnsvr\DNSvrObj.h(30): error MIDL2011 :
unresolved type declaration : PD_TYPE [ Parameter 'st' of
Procedure 'test' ( Interface 'IDNSvrObj' ) ]"
Could anyone please kindly tell me how to do it?
Thanks,
Dejun Yang
[uuid("D9A71227-A978-4e6a-97CC-B48C90AF85E7")]
struct PD_TYPE
{
short flag;
};//PD_TYPE;
// IDNSvrObj
[
object,
uuid("060DBBB4-2D01-4D51-B40D-3810C8DF70BA"),
dual, helpstring("IDNSvrObj Interface"),
pointer_default(unique)
]
__interface IDNSvrObj : IDispatch
{
[id(1), helpstring("method Send")] HRESULT Send
(VARIANT data);
[id(2), helpstring("method testing")] HRESULT
testing([out,retval] LONG* llong);
[id(3), helpstring("method test")] HRESULT test
(PD_TYPE* st);
};
Here is the code. Struct PD_TYPE is defined.
When building, I got the following error msg.
"d:\playground\dnsvr\DNSvrObj.h(30): error MIDL2011 :
unresolved type declaration : PD_TYPE [ Parameter 'st' of
Procedure 'test' ( Interface 'IDNSvrObj' ) ]"
Could anyone please kindly tell me how to do it?
Thanks,
Dejun Yang
[uuid("D9A71227-A978-4e6a-97CC-B48C90AF85E7")]
struct PD_TYPE
{
short flag;
};//PD_TYPE;
// IDNSvrObj
[
object,
uuid("060DBBB4-2D01-4D51-B40D-3810C8DF70BA"),
dual, helpstring("IDNSvrObj Interface"),
pointer_default(unique)
]
__interface IDNSvrObj : IDispatch
{
[id(1), helpstring("method Send")] HRESULT Send
(VARIANT data);
[id(2), helpstring("method testing")] HRESULT
testing([out,retval] LONG* llong);
[id(3), helpstring("method test")] HRESULT test
(PD_TYPE* st);
};