DECLARE_INTERFACE_MAP() //声明接口映射 BEGIN_INTERFACE_PART(TestInterface, IMyTest) //声明实现接口IMyTest的嵌套类 STDMETHOD(Test)(); END_INTERFACE_PART(FontNotify2) (2)CSampleView类实现中加入以下代码: BEGIN_INTERFACE_MAP(CSampleView, CCmdTarget) INTERFACE_PART(CSampleView, IID_IMyTest, TestInterface) ...
[ 查看全文 ]