COM的属性不能是一个函数指针吗?ATL的轻量级COM
想在其中添加一个 类型为函数指针的 属性
目的是想通过这个属性,实现回调函数,即调用COM的用户 将一个函数赋给COM的这个函数指针,
然后COM来回调这个函数。//定义了函数指针的类型
typedef void (*Response)(BSTR Result, BSTR AddInfo);添加 Response类型的属性后,编译不过
-------------------------
VC7下的错误信息是
:\My WorkShop\DataGather\EtermCtrl\EtermHandler.h(49) : fatal error C1904: 错误的提供程序交互: bc6b4b8a-0e4a-4bc9-b319-9dc2acfb61ee
c1xx : fatal error C1063: INTERNAL COMPILER ERROR
         Please choose the Technical Support command on the Visual C++ 
         Help menu, or open the Technical Support help file for more information
c1xx : fatal error C1063: INTERNAL COMPILER ERROR
         Please choose the Technical Support command on the Visual C++ 
         Help menu, or open the Technical Support help file for more information
------------------------
VC6下的错误信息是
E:\My WorkShop\DataGather\EtermUser\EtermUser.idl(19) : error MIDL2131 : parameter must not be a function : [ Parameter 'pVal' of Procedure 'get_pResponse' ( Interface 'IEtermCtrl' ) ]