interface ISenderConfig ;[
object,
uuid (C080ED0F-69A3-47a4-BAD0-A2B34BE68ACE)
]
interface ISenderConfig : IUnknown
{
HRESULT
SetSenderFun (
[in] void* NetSenderFun) ;//这里,这个参数类型怎么写呢?
HRESULT
GetVideoMediaType(
[out] UCHAR* pFormat,
[out] ULONG* iLength
);
} ;
我写成void* ,编译时有错:
error MIDL2139 : type of the parameter cannot derive from void or void * : [ Parameter 'NetSenderFun' of Procedure 'SetSenderFun' ( Interface 'ISenderConfig' ) ]请教,要想实现通过COM接口设置一个回调函数,如何定义idl?
FreeLaxy, your backup.
=======================================================
http://www.vckbase.com/document/viewdoc/?id=1539
使用 sink event
msdn上的这段话说定义IDL时参数类型不能是void或void *。