在使用MFC的应用程序中使用ATL -Using ATL in MFC application 下载
|
在MFC工程中添加ATL的示例代码。很使用的代码,对于搞MFC的朋友很有用的-adding ATL the sample code. The very use of a code for engaging MFC very useful friends 下载
|
《包容ActiveX控件》将介绍ATL对在对话框中使用ActiveX控件的支持,由于ActiveX控件就是ATL的专业,所以WTL没有添加其他的辅助类。不过,在ATL中使用ActiveX控件与在MFC中有很大的不同,所以需要重点介绍。我将介绍如何包容一个控件并处理控件的事件,开发ATL应用程序相对于MFC的类向导来说有点不方便。在WTL程序中自然可以使用ATL对包容ActiveX控件的支持。 例子工程演示如何使用IE的浏览器控件,我选择浏览器控件有两个好处: 每台计算机都有这个控件,并且 它有很多方法和事件,是个用来做演示的好例子。 我当然无法与那些花了大量时间编写基于IE浏览器控件的定制浏览器的人相比,不过,当你读完本篇文章之后,你就知道如何开始编写自己定制的浏览器! -"inclusive ActiveX" ATL will be presented in the dialog box to use ActiveX Controls the support, as ActiveX ATL is the professional, So WTL did not add other types of assistance. However, the use of ATL and ActiveX controls in MFC are quite different, there is a need to highlight. I will show you how inclusive a control and processing controls, ATL development applications in relation to the MFC category is a bit inconvenient Wizard. The WTL natural process can be used to ATL inclusive ActiveX support. Examples of projects demonstrate how to use the Internet Explorer browser control, I choose the browser control has two advantages : every computer has the controls, and it has many ways, is used for demonstration of good examples. I can not of course with those who spent a lot of 下载
|
前在网上有一个CPictureEx类,用于加载GIF动画,不过该类是mfc封装类,对于不使用mfc的c++程序员来讲,不能使用。为了让该类能够让更多的人方便的使用,使其不再被局限于MFC,花时间改造了一下这个类,改造,该类可以应用于任何MFC、 WTL/ATL及其它INDOWS API编程。由于原来的CPictureEx是继承于CStatic类,改造后,在CPictureEx中直接封装了一个窗口句柄HWND。假设您在一个弹出式Dialog对话框中加载gif动画,您要做的就是在对话框中放一个控件,可以是BUTTON、STATIC等等。假设您加的这个控件的ID是IDC_FLASH,您的对话框窗口句柄是hDlg,则要使用CPictureEx,将非常简单。详情参见源代码。-ago on the Internet which is a CPictureEx category for loading GIF animation, But such is mfc Packaging category for the non-use of the c mfc speaking programmers, which can not be used. To allow such to allow more people to use, it will not be confined to the MFC. renovation of time spent on this category, transformation and can be applied to any such MFC, WTL / ATL and other INDOWS API programming. As the original CPictureEx inherited from CStatic category that after transformation, In CPictureEx directly Packaging a window handle HWND. Suppose you in a pop-up dialog box loaded Dialog gif animation You need to be done is up in a dialog box controls can be BUTTON, STATIC, and so on. Suppose you added in the control ID is IDC_FLASH, your dialog window handle is hDlg, CPictureEx would use, 下载
|
目前在网上有一个CPictureEx类,用于加载GIF动画,不过该类是mfc封装类,对于不使用mfc的c++程序员来讲,不能使用。为了让该类能够让更多的人方便的使用,使其不再被局限于MFC,本人花时间改造了一下这个类,改造后,该类可以应用于任何MFC、 WTL/ATL及其它WINDOWS API编程。 由于原来的CPictureEx是继承于CStatic类,本人改造后,在CPictureEx中直接封装了一个窗口句柄HWND。 假设您在一个弹出式Dialog对话框中加载gif动画,您要做的就是在对话框中放一个控件,可以是BUTTON、STATIC等等。假设您加的这个控件的ID是IDC_FLASH,您的对话框窗口句柄是hDlg,则要使用CPictureEx,将非常简单。详情参见源代码。 -present on the Internet which is a CPictureEx category for loading GIF animation, But such is mfc Packaging category for the non-use of the c mfc speaking programmers, which can not be used. To allow such to allow more people to use, it will not be confined to the MFC. I spend time on this transformation of the type that after transformation, and these can be applied to any MFC. WTL / ATL and other Windows API programming. As the original CPictureEx inherited from CStatic category, I transform, In CPictureEx directly Packaging a window handle HWND. Suppose you in a pop-up dialog box loaded Dialog gif animation You need to be done is up in a dialog box controls can be BUTTON, STATIC, and so on. Suppose you added in the control ID is IDC_FLASH, your dialog window handle is hDlg, CPictureEx w 下载
|
说到COM,相信在Windows平台上有过开发经验的朋友一定接触过,它是Windows操作系统的基本软件模型,从93年建立以来,为Windows平台的推广和发展做出了不可磨灭的贡献,而且其自身还在不断发展。但是要真正开发COM组件并不是很轻松,在Visual C++中,我们既可以使用MFC也可以使用ATL。MFC完全面向Windows应用,它用C++的封装技术建立了一套适合于开发Windows应用的C++类库,虽然在后期的版本中MFC提供了大量的COM支持,但是从基本的设计结构上讲,MFC不适合于开发专业的COM组件,它适合于在Windows应用的基础上提供相应的COM支持-said, I believe that the Windows platform had experience in the development of certain contact with friends, it is the basic Windows operating system software model, from the establishment of 93 for the Windows platform, and promote the development of an indelible contribution, but also its own development. But to really develop COM is not very easy in Visual C, we can use MFC can also use ATL. MFC entirely oriented Windows applications, it is using the C Packaging Technology for the establishment of a set of Windows applications in the development of the C library, although in the latter part of MFC version provides a large number of COM support, but from the basic structure of the design sense, MFC is not suitable for the professional development of COM, it suited to the Windows applicat 下载
|
这个库罗列了TCP/IP协议,并允许用户创建自定义TCP/IP头,允许IP欺骗和其它类型的攻击。该库也用于正规的网络通讯(当你不想在你的项目中使用MFC,该库曾被应用于一个商业ATL产品)-listed for the TCP / IP protocol, and allows users to create a custom TCP / IP header, allowing IP fraud and other types of attacks. The bank also used the informal communications network (when you do not want your project using MFC, which has been used for a commercial product ATL) 下载
|
这个库罗列了TCP/IP协议,并允许用户创建自定义TCP/IP头,允许IP欺骗和其它类型的攻击。 该库也用于正规的网络通讯(当你不想在你的项目中使用MFC,该库曾被应用于一个商业ATL产品)-the list of the TCP / IP protocol, and allows users to create a custom TCP / IP header. Allow IP spoofing, and other types of attacks. The base also will be used for informal communication network (when you do not want your project using MFC, The library has been applied to a commercial product ATL) 下载
|
介绍两种方法来写自动化(IDispatch)接口的组件程序,一是用 MFC 方式编写“纯粹”的 IDispatch 接口;二是用 ATL 方式编写“双接口”的组件。这一回将讨论IDispatch 接口和双接口...... 使用者要想调用普通的 COM 组件功能,必须要加载这个组件的类型库(Type library)文件 tlb(比如在 VC 中使用 #import)。-introduces two ways to write automation (IDispatch) interface components procedures with MFC First approach to the preparation of "pure" IDispatch interface; Two methods are used to prepare ATL "dual interface" components.IDispatch ...... COM (Type library) tlb( VC #import) 下载
|
语法高亮控件 PfxEditCtrl。是一款全面支持中文的编辑控件,使用标准的MFC DOC/VIEW机制,使用比较简单,但功能却很强大-PfxEditCtrl syntax highlighted controls. Comprehensive support is a Chinese editorial control, the use of standard MFC DOC / VIEW mechanism, the use of relatively simple. but very powerful function 下载
|