CallBackTest

所属分类:ActiveX/DCOM/ATL
开发工具:Visual C++
文件大小:174KB
下载次数:183
上传日期:2010-06-05 14:37:33
上 传 者explorer101
说明:  所谓基于COM的回调虚接口实现ActiveX控件和客户端程序的通讯,大致是这样的,就是在ActiveX工程的内部的idl文件定义一个虚接口,在客户端程序定义一个虚接口的派生类来实现回调函数,在客户端程序传递派生类对象指针给ActiveX控件,在控件内部调用这个虚接口的函数来激发客户端程序的派生类的对应的回调函数。
(The so-called callback virtual COM-based ActiveX control interface, and client communication, generally is the case, that is, within the project in the ActiveX idl file to define a virtual interface, the client program to define a virtual interface to implement a derived class callback function, the client program passes a pointer to a derived class object ActiveX controls within the control interface called the virtual function to stimulate the client program of the derived class corresponding callbacks.)

文件列表:
CallBackTest\DataX\DataX.aps (38384, 2010-05-31)
CallBackTest\DataX\DataX.cpp (1555, 2010-05-31)
CallBackTest\DataX\DataX.def (206, 2010-05-31)
CallBackTest\DataX\DataX.h (463, 2010-05-31)
CallBackTest\DataX\DataX.ico (1078, 2003-07-23)
CallBackTest\DataX\DataX.idl (1975, 2010-06-05)
CallBackTest\DataX\DataX.rc (5148, 2010-05-31)
CallBackTest\DataX\DataX.vcproj (6342, 2010-06-03)
CallBackTest\DataX\DataX.vcproj.CLEVER101.Administrator.user (1389, 2010-06-05)
CallBackTest\DataX\DataXCtrl.bmp (238, 2003-07-23)
CallBackTest\DataX\DataXCtrl.cpp (6920, 2010-06-05)
CallBackTest\DataX\DataXCtrl.h (1495, 2010-06-05)
CallBackTest\DataX\DataXidl.h (11736, 2010-06-05)
CallBackTest\DataX\DataXPropPage.cpp (1287, 2010-05-31)
CallBackTest\DataX\DataXPropPage.h (557, 2010-05-31)
CallBackTest\DataX\DataX_i.c (2110, 2010-06-05)
CallBackTest\DataX\DataX_p.c (10055, 2010-06-05)
CallBackTest\DataX\dlldata.c (805, 2010-06-05)
CallBackTest\DataX\DrawView.cpp (2549, 2010-06-05)
CallBackTest\DataX\DrawView.h (1262, 2010-06-04)
CallBackTest\DataX\resource.h (797, 2010-05-31)
CallBackTest\DataX\stdafx.cpp (203, 2010-05-31)
CallBackTest\DataX\stdafx.h (1214, 2010-05-31)
CallBackTest\DataX\targetver.h (1432, 2010-05-31)
CallBackTest\TestCallback\CDDataX.cpp (327, 2010-06-05)
CallBackTest\TestCallback\CDDataX.h (1532, 2010-06-05)
CallBackTest\TestCallback\ClassView.cpp (9034, 2010-06-05)
CallBackTest\TestCallback\ClassView.h (1275, 2010-06-05)
CallBackTest\TestCallback\DrawBar.cpp (1006, 2010-06-05)
CallBackTest\TestCallback\DrawBar.h (404, 2010-06-05)
CallBackTest\TestCallback\FileView.cpp (6676, 2010-06-05)
CallBackTest\TestCallback\FileView.h (1135, 2010-06-05)
CallBackTest\TestCallback\MainFrm.cpp (12424, 2010-06-05)
CallBackTest\TestCallback\MainFrm.h (1543, 2010-06-05)
CallBackTest\TestCallback\OutputWnd.cpp (4884, 2010-06-05)
CallBackTest\TestCallback\OutputWnd.h (1011, 2010-06-05)
CallBackTest\TestCallback\PropertiesWnd.cpp (8693, 2010-06-05)
CallBackTest\TestCallback\PropertiesWnd.h (1421, 2010-06-05)
... ...

======================================================================== ACTIVEX CONTROL DLL : DataX Project Overview ======================================================================== ControlWizard has created this project for your DataX ActiveX Control DLL, which contains 1 control. This skeleton project not only demonstrates the basics of writing an ActiveX Control, but is also a starting point for writing the specific features of your control. This file contains a summary of what you will find in each of the files that make up your DataX ActiveX Control DLL. DataX.vcproj This is the main project file for VC++ projects generated using an Application Wizard. It contains information about the version of Visual C++ that generated the file, and information about the platforms, configurations, and project features selected with the Application Wizard. DataX.h This is the main include file for the ActiveX Control DLL. It includes other project-specific includes such as resource.h. DataX.cpp This is the main source file that contains code for DLL initialization, termination and other bookkeeping. DataX.rc This is a listing of the Microsoft Windows resources that the project uses. This file can be directly edited with the Visual C++ resource editor. DataX.def This file contains information about the ActiveX Control DLL that must be provided to run with Microsoft Windows. DataX.idl This file contains the Object Description Language source code for the type library of your control. DataX.ico This file contains an icon that will appear in the About box. This icon is included by the main resource file DataX.rc. ///////////////////////////////////////////////////////////////////////////// CDataXCtrl control: DataXCtrl.h This file contains the declaration of the CDataXCtrl C++ class. DataXCtrl.cpp This file contains the implementation of the CDataXCtrl C++ class. DataXPropPage.h This file contains the declaration of the CDataXPropPage C++ class. DataXPropPage.cpp This file contains the implementation of the CDataXPropPage C++ class. CDataXCtrl.bmp This file contains a bitmap that a container will use to represent the CDataXCtrl control when it appears on a tool palette. This bitmap is included by the main resource file DataX.rc. ///////////////////////////////////////////////////////////////////////////// Other standard files: stdafx.h, stdafx.cpp These files are used to build a precompiled header (PCH) file named DataX.pch and a precompiled types (PCT) file named stdafx.obj. resource.h This is the standard header file, which defines new resource IDs. The Visual C++ resource editor reads and updates this file. ///////////////////////////////////////////////////////////////////////////// Other notes: ControlWizard uses "TODO:" to indicate parts of the source code you should add to or customize. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者