WinSockActiveX

所属分类:网络编程
开发工具:Visual C++
文件大小:534KB
下载次数:157
上传日期:2009-07-17 21:03:05
上 传 者Massachusetts
说明:  这个例子由程序员小辉编写,主要向大家介绍如何使用VC++创建一个标准的MFC WinSock ActiveX控件,源代码非常完整,提供接口、与相应事件挂钩。实例涉及到VARIANT、SAFEARRAY、BSTR的详细使用方法。另外还提供了WinSock的详细开发步骤,以及如何响应网络超时,网络断开的事件方法以及在VC、VB调用该控件的方法。
(This example prepared by the programmer Xiaohui, mainly to tell you about how to use the VC++ to create a standard MFC WinSock ActiveX control, source code is complete, provide interfaces to link with the corresponding events. Examples related to VARIANT, SAFEARRAY, BSTR detailed usage. WinSock also provided details of the development steps as well as how to respond to network timeout, network disconnection as well as in the case method of VC, VB to call the control method.)

文件列表:
标准MFC WinSock ActiveX控件开发实例\1.JPG (58382, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\2.JPG (49439, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\3.JPG (82134, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\4.JPG (56964, 2009-04-24)
标准MFC WinSock ActiveX控件开发实例\5.JPG (60221, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\6.JPG (60976, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.aps (21752, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.clw (1022, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.cpp (2452, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.def (228, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.dsp (8676, 2009-04-24)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.dsw (545, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.h (1022, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.ico (1078, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.ncb (74752, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.odl (2173, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.opt (689664, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.plg (3550, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSock.rc (4284, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSockCtl.bmp (238, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSockCtl.cpp (9809, 2009-04-24)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSockCtl.h (2619, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSockPpg.cpp (2513, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\MFCWinSockPpg.h (1502, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\Resource.h (569, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\StdAfx.cpp (204, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\StdAfx.h (1233, 2009-04-23)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock\Thumbs.db (7680, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\Thumbs.db (23552, 2009-05-04)
标准MFC WinSock ActiveX控件开发实例\标准MFC WinSock ActiveX控件开发实例.htm (11428, 2009-04-24)
标准MFC WinSock ActiveX控件开发实例\MFCWinSock (0, 2009-07-17)
标准MFC WinSock ActiveX控件开发实例 (0, 2009-07-17)

======================================================================== ActiveX Control DLL : MFCWINSOCK ======================================================================== ControlWizard has created this project for your MFCWINSOCK 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 MFCWINSOCK ActiveX Control DLL. MFCWinSock.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. MFCWinSock.h This is the main include file for the ActiveX Control DLL. It includes other project-specific includes such as resource.h. MFCWinSock.cpp This is the main source file that contains code for DLL initialization, termination and other bookkeeping. MFCWinSock.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. MFCWinSock.def This file contains information about the ActiveX Control DLL that must be provided to run with Microsoft Windows. MFCWinSock.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to generate and edit message maps and dialog data maps and to generate prototype member functions. MFCWinSock.odl This file contains the Object Description Language source code for the type library of your control. ///////////////////////////////////////////////////////////////////////////// MFCWinSock control: MFCWinSockCtl.h This file contains the declaration of the CMFCWinSockCtrl C++ class. MFCWinSockCtl.cpp This file contains the implementation of the CMFCWinSockCtrl C++ class. MFCWinSockPpg.h This file contains the declaration of the CMFCWinSockPropPage C++ class. MFCWinSockPpg.cpp This file contains the implementation of the CMFCWinSockPropPage C++ class. MFCWinSockCtl.bmp This file contains a bitmap that a container will use to represent the CMFCWinSockCtrl control when it appears on a tool palette. This bitmap is included by the main resource file MFCWinSock.rc. ///////////////////////////////////////////////////////////////////////////// Other standard files: stdafx.h, stdafx.cpp These files are used to build a precompiled header (PCH) file named stdafx.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. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者