客户端如何实现对MFC ActiveX的Event 的调用介绍

本文档介绍了如何在MFC客户端中创建一个AppWizard生成的对话框应用程序,以支持Automation并连接到MFC ActiveX组件的事件。通过使用Visual C++ 6.0的OLE/COM Object Viewer生成IDL文件,并从中编译生成头文件和UUID文件。通过MFC宏简化事件接收器(sink object)的构建,实现与ActiveX事件源的连接。
摘要由CSDN通过智能技术生成

请参看codeproject上的文章:

http://www.codeproject.com/KB/COM/ActiveXMfcState.aspx

 

 

Building the MFC client

    Our MFC client, is a plain old Appwizard generated Dialog-based application with additional Automation support. As usual, open VC++ 6.0 and create a new MFC Appwizard EXE project called MFCClient. Hit Build to build the project, and take a break from all that hard work!

The OLE/COM Object Viewer is a nifty little tool that is shipped along with Visual C++ 6.0. It will help us generate the IDL file for the DLL component. Go to Tools->OLE/COM Object Viewer and open this tool. Next, in OLE/COM Object Viewer, click on File->View Typelib and navigate to the VBEvent.dll file that we have previously built. Ready for some magic? Click on Open and open up ITypeLib Viewer Can you can view the I

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值