a WM_COMMAND or wm_syscommand message (if a givenaccelerator keysThe entry for the key is in the table, and then the WM_COMMAND or Wm_syscommand message is sent directly to the appropriate window process. Combining the above analysis should be a failure to turn the message into command.Conversion requires a conversion table, in fact, is defined in the Resource Accelerator key table, can be processed in the following ways:Haccel haccel;haccel = atlloadaccelerators (Makeintresource (Idr_iecschart
In the use of ATL programming, often use the CComSafeArray class, which is SAFEARRAY exist and used for a period of time to publish, so in the vc++6.0 version of the IDE environment can not use the CComSafeArray class, VC + + 6.0 later versions of altsafe.h This file were added, and the CComSafeArray class was joined to ATL with the addition of this file.This article is from the "8403723" blog, please be su
First of all, the birth of COM is based on the binary concept of reuse, has been affecting the technical basis of the DLL. It is a specification of the communication between components and components of a binary module in Windows, and ActiveX relies on this technology because something in the browser may need to get the client's local underlying information. And the ATL library, this class library is to assist in writing ActiveX class library, conveni
First, how to use the MFC version of the Cpictureex:1. Add a static text control or picture control to your dialog box, and Group box can;2. Change the ID of the control to a name such as Idc_mypicture;3. Use ClassWizard to add variables to the control. such as: Category-control,variable type-cstatic;4. Replace CStatic with Cpictureex in the header file of the dialog box (don't forget to add PictureEx.h and PictureEx.cpp to your project, and include "PictureEx.h");5. Add the following code to On
For a long time did not give the VC knowledge Base to press, really embarrassed, because the previous period of time is too busy so there has been no time to write something, there are many friends to me to discuss the issue, I am grateful to all of my support, I welcome you to continue the letter, common communication, common progress! This time I want to talk to you about Windows Shell expansion programming, first of all, before reading the following content I would like to recommend that you
Introduced
If you are a master of templates, you can take ATL learning as a kind of enjoyment. In this section, I'm going to try to explain some of the template technologies that ATL uses. I can't guarantee that you can become a template master after this section, only to do what I can to make it easier for you to understand the ATL source code after reading thi
I used to write the DLL creation process and use LoadLibrary to load the dynamic library directly.But ATL presents a very important feature that introduces the concept of COM objects.First of all. The ATL Active Template Library is the active templates gallery. ATL to ASP provides code for COM applications.Instead, you typically use the Active Template Library to
If you have SDK programming experience, you must know that you need to specify the window class when creating the window. An important parameter in the window class is the window process. Messages received by any window are processed by this window process.
In object-oriented programming, if developers need to use the original Window Process as a process-oriented development method, the object-oriented method is not so pure. Therefore, in the interface programming framework, the Framework ofte
Download source code
I. Preface1. If you are using vc5.0 or a previous version, upgrade it to vc6.0 or vc.net 2003;2. If you are using vc6.0 (ATL 3.0), read this article;3. If you are using vc.net (ATL 7.0), please read the next article. (Of course, reading this article is also good)4. Except for the iunknown interfaces required by all COM components, the first component implements a self-defined interface
dispinterface (pure idispatch Interface), itypeinfo: invoke will directly fail.
By the way, ATL itself does not support multiple idispatches, and it is difficult to merge multiple idispatches into one. For example, we may inherit from multiple idispatchimpl. They have their own idispatch implementations and support different interfaces. We can use com_interface_entry2 (idispatch, XXX) to select one, but it cannot be easily merged.
The idispeventimpl
ATL/com activity Template Library
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
StatementCStringThis problem has plagued many young people, because it may cause strange compilation errors. Today I am going to explore it with me.ATL,WTLHeader file to make this clear.
Header files involved
ATL: atlstr. h, atlsimpstr. h
MFC: cstringt. h, afxstr. h
WTL: atlmisc. h
The relationship between ATL and MFC is constantly broken. To make it easier to analyze, we must first clarify the relationship
1. Both of them can use Appwizard in vs ide To establish the framework. The former uses "MFC ActiveX Control wizard", and the latter uses "atl com Appwizard ".
2. The default extension of ActiveX controls created with MFC is ". ocx", and that of ActiveX controls created with ATL (Active Template Library) is ". dll ".
3. It is much easier to use MFC to create ActiveX controls, because it saves the trouble
MFC, ATL, and CLR are the three built-in libraries of VC2005, covering various development methods and applications of windows. Of course, there are more than three libraries for C ++ development, but these three are recommended by Microsoft. From the programming level, WIN32 is the lowest layer, followed by MFC. Then the CLR. WIN32 winAPI MFC class library CLR. net Library
1. WIN32 is a program that uses API functions instead of MFC.
2. the MFC Libra
MFC, ATL, and CLR are the three built-in libraries of vc2005, covering various development methods and applications of windows. Of course, there are more than three libraries for C ++ development, but these three are recommended by Microsoft. From the programming level, Win32 is the lowest layer, followed by MFC. Then the CLR. Win32 winapi MFC class library CLR. Net Library
1. Generally, Win32 does not use MFC. It is compiled using API functions.Pro
Author: zeeshan AmjadTranslator: Li Ma (home.nuc.edu.cn /~ Titilima)Source: http://www.codeproject.com/atl/atl_underthehood_3.asp
Introduction
If you are a template expert, you can take the learning of ATL as a kind of enjoyment. In this section, I will try to explain some template technologies used by ATL. I cannot guarantee that you can become a template master
You cannot start debugging on the Web server, and the server does not support debugging an ASP. NET or ATL Server application.A>. The properties in the DCOM Config Gray are not available in the workaround,1> management tools, Component Services-computers-Computer-iis Admin server (View details)Appid= IIS Admin Server a9e69610-b80d-11d0-b9b9-00a0c922e7502> Use Regedit to locate the ID that hkey_classes_root\appid\{just found} "3>: Right-click on {ID} j
Use csf-wimpl to implement the window
I,Create a project. Create an ATL Project in vc8. The name is atl_test, and the server type is executable (exe.
II,New window class. Add a C ++ class as a window class. In the wizard, enter the class name cmywindow, the base class c1_wimpl
Include the header file in stdafx. h: # include
The generated code is as follows:
// Version 1.0.0.0
Mywindow. h
# Pragma once
Class cmywindow:Public cwindowimpl {Public:
[ATL/WTL] _ [intermediate] _ [Native check box button and single-choice button to achieve transparent background effect solution], atlwtl
Scenario:
1. Native controls of mfc and wtl use the parent window to intercept the WM_CTLCOLORSTATIC event to modify the color and background color of the Child control. CStatic can draw a transparent background by returning HOLLOW_BRUSH:
m_HollowBrush = AtlGetStockBrush(HOLLOW_BRUSH);
However, if the manifest fil
operating system platforms. Another part is closely bound to Windows. Calling Windows APIs can be considered as an extended CRT. These two parts are put together because they are all required for developing Windows operating systems, and also because they are required by C/C ++ programmers on Windows platforms. This complex relationship is caused by Microsoft's human factors. Therefore, CRT cannot be considered based on windows or Windows APIs.2. Most of the content of CRT is cross-hardware pla
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.