First, the preface
1, with the "COM Component design and application (V)" content is basically consistent. But this is explained in Vc.net 2003 use method, even if you no longer use vc6.0, also please and the previous back of the content, reference comparison.
2, this first component, in addition to all COM components must be IUnknown interface, we implement a defined interface Ifun, it has two functions: Add () completes two numeric addition, Cat () completes two strings of the connection.
3
Introduction to ATL (1)
As ATL/COM/ActiveXI would like to improve the popularity of our forum and write some articles to attract more com users.Newbie. Every day, you will see some problems that new users encounter when passing parameters, such as custom structure types, arrays, interfaces, and other parameter types. This article mainly makes some fear of COMNewbie knows what basic knowledge to master
This article describes a method for usingVC + + ATL (Active templatelibrary), usingispextensibilityinterface, foristylepdfJoin the function simpleCOMPlugins (addin), add visual parts such as toolbar buttons, and add a method for responding to events. We useVS2010to beistylepdfPlatform Development Plugin, of course, can also use otherVStools. The first step in developing a plug-in requires installationistylepdfClient , the client program includes theAc
(including animated GIFs), but also show Jpeg,bmp,wmf,ico and cur (that is, all oleloadpicture recognized images can be processed and displayed). On this basis I have also completed the ATL version of this C + + class. The following is a screenshot of the program running:
Here's how to use the MFC version of the Cpictureex class
Adding a static text or image control to a dialog box (using the Group property is also a trick); Modify the control ID
Microsoft Corporation provides the latest data development technology for OLE DB, which is built on COM interfaces. Because the OLE DB development database is convenient and fast to database access, it is a preferred technology for many commercial software. As a programmer, I was fortunate to participate in the development of interactive TV programs of Chengdu World Video Network Limited liability company. In the development of "stock on demand" system, we chose the
The latest data development technology ole db provided by Microsoft is built on the COM interface. Because ole db is very convenient to develop databases and has fast access to databases, it has become the preferred technology for many commercial software. As a programmer, I have the honor to participate in the development of interactive TV programs of Chengdu World video network Co., Ltd. In the development of the "stock on-demand" system, we chose the ole db class encapsulated by
ATL, Active Template Library Activity Template Library, is a type of Microsoft
Program Library, supports the use of C ++ language to write ASP
Code And other ActiveX programs. Through the Active Template Library, you can create COM components and then call COM objects through scripts on the ASP page. Such COM components can contain properties pages, dialog boxes, and other controls.
ATL is undoubtedly th
Recently made an ATL-based control, designed an interface, want to return multiple parameters, but through JavaScript but can not get the return value, originally thought is the problem of their own interface, and later found on the Internet a lot to find that the original MSDN has a clear saying:JavaScript does not support passing parameters by reference. JavaScript would make copies of these variables and pass them by value when calling methods then
current author in the earliest Windows CE system Building tools software is completely written using WIN32 [at that time the size of the software requirements are very high], but through this to the entire window program operation mechanism is still very clear.The development tool was also popular at that time VC1.52 Borland c++[Levi in Borland's book has detailed introduction].Reference booksWin32 API Reference ManualWindows Programming (Charles Petzold)These can be said to be very classical i
Sometimes, we need to write the program without the user login, as long as the Windows system started running, then we can write our program as a Windows service.
Services can be used by a variety of users, including local and remote users, with the ability to administer at a user's authorization level, and whether the user is physically connected to the computer running the application.
Next, I'll use a simple example to illustrate how to write a Windows service program in
First, the introduction
Recently, due to the requirements of the work, I need to do some development work on IE. So I went through some of the information on MSDN, and on the MSDN note I accomplished the "capitalist Boss" assignment with ATL.
(and in the daytime sleep in the process of the dream of the boss gave me a pay increase ...) )
Now, I have translated the original information on MSDN and Fengxian the implementation of an
ATL can be used as a complete control development framework. Its main goal is to provide convenient development methods and generate smaller target files. Because ATL can be removed from MFC, its execution speed and loading speed are faster than those developed by MFC. Of course, you can also use MFC in ATL, but this will lose the advantages of
M_pfncreateinstance (punkouter, riid, ppvobj); now everything is clear,
The layer-by-layer packaging of ATL for creating class factories has been opened, and the rest of the process for creating components is already
We are very familiar with the process!
However, we still need to query an iunknown pointer for the class factory object.
We can see in the previous pentry-> PCF.
6: stdmethod (QueryInterface) (refiid IID, void ** ppvobject){Return _ int
Http://www.vckbase.com/document/viewdoc? Id = 211
IntroductionThe purpose of this tutorial is to show you how to use ATL to create a COM server and use visual c ++ and Visual Basic programs to call this server separately. I don't want to go deep into the details of COM, and I don't want you to get stuck in IDL. This tutorial was designed only for novice programmers of VC ++. It tells them how simple it is to create a COM Object using
Original: http://vckbase.com/index.php/wv/1216.htmlFirst, preface1, and "COM Component design and application (v)" The content is basically consistent. But this is explained in Vc.net 2003 under the use of the method, even if you no longer use vc6.0, also please and the previous content, reference.2, this first component, in addition to all the COM components must be IUnknown interface, we implement a self-defined interface Ifun, it has two functions: Add () to complete the addition of two numbe
STL (standard template library STL) is a general term for a series of software developed by the HP lab. It was developed by Alexander Stepanov, Meng Lee, and David R musser while working at the HP lab. Although it mainly appears in C ++, this technology has existed for a long time before it was introduced into C ++. STL code is broadly divided into three types: algorithm (algorithm), container (container), and iterator (iterator ), almost all code uses the template class and template function, w
Download source code
I. Preface
1. It is basically consistent with the content in COM Component Design and Application (5. However, this article explains how to use it in vc.net 2003. Even if you no longer use vc6.0, compare it with the previous one.2. Except for the iunknown interfaces required by all COM components, the first component implements a self-defined interface ifun, which has two functions: add () completes the addition of two values, and CAT () completes the connection between the
Reprinted: In www.csdn.net, due to the needs of the ATL server, it is necessary to decode the address, command, and other complex text field information sent from the client, and the regular expression is recognized as the most powerful text parsing tool, therefore, ATL provides some libraries for regular expressions to facilitate our work.
ATL1Catlregexp classDeclaration: Template
Matching:Call the match
First, I declare that I am not a master of COM/ATL. Although I have been in contact with them for four years, I have not been able to conduct in-depth research and use them extensively for some reasons at work. However, it is a bit difficult to look back at their painful experiences. Here, I would like to share with you how to learn them, so as to reduce the detours for later users.
I personally think it is not easy to learn com. Only by understanding
the a2w macro was being used. I think this was probably just good fortune rather than vc7 being exceptionally helpful (no pun intended !).
So: Don't use uses_conversion and friends in thread functions or tight loops-you have been warned!
========================================================== ==================
ATL string: What's wrong with the uses_conversion Macros? How to avoid using them?
Q:ATL string: What's wrong with the uses_conversion
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.