Click here to Skip to main content
15,867,453 members
Everything / Desktop Programming / ATL

ATL

ATL

Great Reads

by Michael Dunn
A tutorial on writing a shell extension that can be used on the Send To menu.
by Michael Dunn
A tutorial on writing a shell extension that provides custom drag and drop functionality.
by Tim Smith
Color picker control for WTL applications including optional support for XP themes
by Ernest Laurentin
Full-fledged ATL Windowless ActiveX Container. Ideal for hosting Windows Media Player, Transparent Flash and Silverlight Animations.

Latest Articles

by Javad Taheri (drjackool)
Show or hide, reorder, save and restore list view column headers
by Shivprasad koirala
This blog will discuss the difference between server.transfer and response.redirect.
by Nick Pirocanac
Linker errors due to CStringT template classes and ATL vs. MFC issues
by Midi_Mick
Using ATL and STL to create collections of COM objects without circular references

All Articles

Sort by Title

ATL 

8 Nov 2020 by rajesh482
I've implimented a ATL single thread apartment based project . class ATL_NO_VTABLE CMySrv : public CComObjectRootEx, public CComCoClass, public IMySrv In the method, I'm creating multiple worker...
16 Apr 2001 by Igor Sukhov
The ATL and MFC versions of the class that implements a dialog for selecting users(computers) within the Windows Network.
2 Nov 2010 by Daniel Ranger
Native C++ implementation of the .NET Asynchronous Design Pattern using Windows I/O Completion Ports
17 Sep 2004 by Nick Parker
A free IE toolbar that pulls up namespace and class documentation on the new MSDN site.
19 Jan 2003 by peterchen
Setting up doxygen, a free tool to document your code, in a few simple steps.
28 Apr 2011 by Tom Gee
A WTL control class to add water effect to an image, like what's done in the TortoiseSVN About dialog
8 May 2003 by mdgray
SafeArray Wrapper to simplify and speed up 2D CComSafeArray
15 Jun 2003 by Mike Melnikov
Google-like Toolbar with customization from xml file and update from web features
4 Jul 2009 by Kannan Ramanathan
Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64)....
4 Jul 2009 by Kannan Ramanathan
One more req I have to worry abt: The 64bit local server should be able to implement connection points (32bit client being the sink)...is this possible? Thanks.
2 Aug 2003 by Nikolai Teofilov
An ATL/STL ActiveX control based on OpenGL library for 3D data visualization
5 Aug 2011 by computer50000
I have created an ATL control in a 64 bit unmanaged dll. I want to use this control in a VC++ WinForms app. When I run the application I get badimageformatexception. Then I have created an VB app and a C# app. In both cases it works with no problem.I have then tested my control...
6 Aug 2011 by computer50000
I have found the solution ... It is possible to be a bug in VC++ 2010http://stackoverflow.com/questions/6965952/64-bit-atl-control-does-not-work-with-vc-forms-appthanks,mihai
20 Dec 2019 by SuperMiQi
Hello Everyone, I have to improve an old c++ atl drawing control which has some public properties. During his configuration on a winform c#, I made changes via the devstudio properties toolbox. Once I ran the c# application, I discovered the modified properties like his title,... were not the...
20 Dec 2019 by KarstenK
These abstract classes are used as parent class for your implementation. So create a child class. You shouldnt rely on the work of these base implementations because of security reason. Read the documentaion is boring, but it helps.
3 Mar 2010 by bltfr
hi,i have a native C++ dll and a virtual class("mycert") in it.I have an ATL dll project and i included the native dll into the ATL and create an interface for the 'mycert' .In mycert interface i have a function :STDMETHODIMP Cmycert::setSignature(BYTE* data, SHORT size){ cert...
25 Feb 2010 by Eugen Podsypalnikov
Can you call your functionif it returns S_OK only ? :)
25 Feb 2010 by bltfr
yes i can call it. I am calling the functions of the other interfaces but only this interface doesn't work.
25 Feb 2010 by Eugen Podsypalnikov
OK, it is not just a bit :) Could you explainwhy do you need a new mycert()or what would you like to have in your function ? :)
25 Feb 2010 by bltfr
mycert is the class in my native c++ dll so i should create an instance of it to use the functions of it . I don't create the instance of the mycertclass in the ATL with "new mycert()" code. ByteArray and ASN1BitString classes are also in the native dll and i can do operations with them, there...
25 Feb 2010 by Eugen Podsypalnikov
Could you post the definition of the mycert class ? :)
25 Feb 2010 by bltfr
#ifdef dll_EXPORTS#define dll_API __declspec(dllexport)#else#define dll_API __declspec(dllimport)#endifclass dll_API mycert : public Sequence{ public: mycert(void); mycert(string name); ~mycert(); void setTCert(TCert* tCertVal); ...
25 Feb 2010 by Eugen Podsypalnikov
It does not look to be a virtual class... :) Is there an errorwhen you reduce the interface function to ? :{ mycert cert; return S_OK;}If you will get no error -please read the documentation of mycert::setSignature(..)(may be there is a limitation by the data length or...
25 Feb 2010 by bltfr
I got no error with that code.I change the code :STDMETHODIMP Cmycert::setSignature(BYTE* data, SHORT size){ cert = new mycert(); ByteArray barray; for(int i=0;i
25 Feb 2010 by Eugen Podsypalnikov
You could also place an AfxMessageBox(_T("#"));after each line in this function to determinate the error source approximately :)
25 Feb 2010 by bltfr
I put the line AfxMessageBox(_T("#")) ,it gives the following error:"fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] c:\Program Files\Microsoft Visual Studio...
25 Feb 2010 by Eugen Podsypalnikov
:) ...then MessageBox(NULL, _T("Line #"), _T("We are inside :)"), MB_OK);
25 Feb 2010 by bltfr
It worked. Thanks Eugen! There is a problem inside the for loop, but i can't understand ,same loop works correctly in other functions.
25 Feb 2010 by Eugen Podsypalnikov
OK :) Please try this body:{ BYTE byTest = data[1]; return S_OK;}
25 Feb 2010 by bltfr
it is working, what should i do?
25 Feb 2010 by Eugen Podsypalnikov
May be you should use ByteArray::Add(..) and not [..] ? :)
25 Feb 2010 by bltfr
there is no Add function, there is an init function but it is protected.
25 Feb 2010 by Eugen Podsypalnikov
Could you post the definition of the class ? :)
25 Feb 2010 by bltfr
class dll_API ByteArray{ public: ByteArray(int sz = 0); ByteArray(const ByteArray&); ~ByteArray(); ByteArray& operator=(const ByteArray&); unsigned char& operator[](int) throw (RangeException); string getHexString(bool); string...
25 Feb 2010 by Eugen Podsypalnikov
OK :) Try to construct your instance as following:{... ByteArray arTemp(size); // pass the second parameter here :) // The loop...}
25 Feb 2010 by bltfr
;) it works, Eugen you are perfect. i am very thankful to you
21 Dec 2004 by Hossein Khosravi
A 2D graph component with zoom capability.
6 Nov 2004 by ThatsAlok
An article touching simple issues like events, methods and properties.
18 Jul 2009 by ThatsAlok
Article touching simple issues like property, method and event and using it in .NET applications
19 Dec 2012 by ThatsAlok
Article touching simple programming instrument like Property, Method, Event and invoking ATL Dialogs from ATL/COM Component
10 Apr 2002 by Ranjan Banerji
A tutorial on how to create connection points using VC++ and ATL
22 Feb 2010 by Aric Wang
The article will give you an idea on how to design a source filter.The source filter creates samples and outputs it from its output pin.
10 Dec 2002 by George Anescu
Presenting a C++ class for correct operations on BSTR strings with binary data contents
2 Feb 2010 by amihar1727
can anyone help me on how to connect to google chrome. i would like to build a standalone c++ application(probably a dll) that would list events done by the browser.Probably like the BHO implementation of IE.can anyone give the first thing or steps to do about it?!thanks alot:) help much...
2 Feb 2010 by «_Superman_»
This tutorial may help you on how to write chrome extensions - http://code.google.com/chrome/extensions/getstarted.html[^]
18 Aug 2004 by Sprotty
An introduction to XML Data Binding, and a review of a number of leading products.
22 Dec 2002 by Philipos Sakellaropoulos
A COM component written in C++ that offers functions for multiple parallel downloads, Internet cache access, URL and path resolving.
17 Dec 2007 by Arif Zaman
An article on a Scriptable ActiveX Web Control using ATL.
31 Oct 2002 by Chad Busche
How to implement an Explorer Desktop Band that uses the Microsoft’s Performance Data Helper interface to display current performance data about activity such as memory, disk, and processor usage.
20 May 2007 by Michael Dunn
Busted features? APIs failing? Use this guide to get your IE plugin up and running again in protected mode!
11 Mar 2008 by xueming.yan
A fast and lightweight cell control for displaying tabular data. The cell is a custom control derived from ATL::CWindow.
7 Jun 2007 by callmepls
23 May 2008 by Jeffrey Walton
Create a File Checksum Shell Menu Extension using ATL and Crypto++
22 Sep 2010 by shicheng
A fully featured and easy-to-use Windows HTTP wrapper in C++
29 Jan 2007 by Michael Dunn
This article shows a Vista Sidebar gadget that you can use to browse the APOD site and view previews of each day's picture.
6 Dec 2001 by Michael Dunn
This article demonstrates redirecting output of a child process, and displaying a web browser UI using DHTML.
6 May 2002 by Ranjan Banerji
SRComHelper makes it easier to call invoke specially in cases where there are several calls to Invoke
31 Jul 2001 by @deel@bbas
A simple COM server that is based on multiple inheritance
25 Sep 2006 by Shatyamm Kumar
This article shows how to implement connection points practically.
10 Dec 2008 by shicheng
An article on a easy use regular expression wrapper.
14 Nov 2001 by Agus Kurniawan
Simple program for an Active Server Component that handles cookies
3 Jan 2000 by Ashish Dhar
A simple logging utility to help debug your ATL applications
31 Jul 2008 by shicheng
Gets the content of a web page into a project without the WinHttp APIs mixed in my source code using a WinHttp wrapper.
29 Mar 2000 by Jeremiah Talkar
An extremely simple class that wraps the win32 CRITICAL_SECTION. Ideal for the COM STA or MTA.
10 Sep 2002 by Shaun Wilde
An IE menu extension that allows you to spell check your form submissions.
8 Aug 2002 by Rama Krishna Vavilala, Nish Nishant
This article compares and contrasts the relative performances of various languages like native C++, Visual Basic 6, C#, VB.NET, Managed C++, MC++ and native code mix, ngen'd assemblies etc. using a prime number generation function as a generic benchmark
3 Apr 2001 by Michael Dunn
A utility that lets you browse to a MS Knowledge Base article right from the Run dialog
6 Apr 2005 by Andrea Cacciarru
This article explains how to publicize and retrieve data from custom Outlook forms programmatically.
6 Jul 2008 by jangtimjang
A ready-to-use wrapper class for creating a shortcut (.lnk file) and a bookmark (.url file) and finally attaching an online icon resource to it.
22 Jan 2002 by Noel Frankinet
4 Apr 2010 by dxFrety
Hi!I want to write a plug-in for Windows Media Player 11 to capture screenshots but I find it is really difficult for me. Is there someonewho can give me any suggestion?------------(My English is so-so, there may be some mistakes in my question, I'm so sorry! If you want to help me...
3 Apr 2010 by Rod Kemp
To learn how to create plug-ins for Windows Media Player, see the Windows Media Player SDK[^].This should outline what you can and can't do with a plug-in in WMP.
3 Apr 2010 by dxFrety
To Rod Kemp:What I mean is Not Only using Wmp SDK But Also others like DirectX SDK andWindows Media Format SDK.
4 Apr 2010 by Rod Kemp
To find information regarding the DirectX SDK and Windows Media Format SDK a quick Google (or Bing) search finds the MSDN pages for them which also contain sample code;Windows Media Format 11 SDK[^]DirectX Developer Center[^]Also a quick search of this site found;Various methods for...
14 Aug 2004 by Akash Kava
Getting the History from Internet Explorer in MFC.
12 Apr 2004 by Lonnie McCullough
A set of macros and classes that allow declarative access to registry settings.
6 Oct 2006 by Michael C. Robert
Demonstrates how to use WTL and C++ to access an Excel spreadsheet using Visual Studio .NET 2003.
11 Oct 2012 by Argonia
Hello again,I have a problem with ActiveX control. I have a com (written in c#) which is a frame with few child windows. I made a c++ app which calls the COM object in a Dialog via ActiveX controlBOOL (WINAPI *m_AtlAxWinInit)(); m_AtlAxWinInit = (BOOL (WINAPI...
10 Oct 2012 by chaau
Try to pass null instead of hSelf (which I assume is the HWND of the dialog) to the CreateWindowEx function. In this case the Frame from the COM object will live on its own without the parent. You will then be able to SetWidowPos for the hAtl.
21 Mar 2001 by Frank Boettger
Three ActiveX controls that allow the runtime-browsing of the object model hierarchy of a COM-Object, its implemented interfaces and the browsing and interactive changing of its properties and methods (a somewhat extended combination of VB's property- and debug-windows).
29 May 2006 by VictorVele
Example for read Magnetic Strip Reader using ActiveX, COM Object for KioskMsr reader
11 Sep 2003 by Zhang YanFeng
This article will show you how to make MDI window of WTL into ATL control by using a real world example.
23 Nov 2001 by Oleg Bykov
A class for displaying animated GIFs and more. MFC and ATL versions available!
13 Jul 2011 by gautamys
Hi All,I want some code using ATL to add some menu items to Tools Menu in Windows explorer.That is for ex : Open c:\ . Press ALT . You will see File View Tools Help etc Menus . You click on Tools you see Map Network Drive, Folder Options etc menu items . I have to add a new men item here...
27 May 2003 by Catalin Stavaru
Finally, an add-in that increments build number for VC++.NET !
22 May 2004 by chakkaradeepcc
This project aims at adding a new toolbar and button to Microsoft Outlook
15 Dec 2007 by Igor Tolmachev
This article demonstrates how to add a Status Bar pane to Internet Explorer Window, and then how to use it for managing Web page password fields.
7 Nov 2011 by Coder Block
Hi All,I want implement MFC Docking Framework[^]in my existing mfc applicationi have take same trial but it gives me assertion like before execution of my project. in output window a text appears Like, "Performing registration" and after that came below assertion ...
7 Nov 2011 by Richard MacCutchan
You already posted this question here[^]. Please use one forum only.
2 Jul 2014 by Mohammed El-Afifi
Given an existing win32 application, how to provide COM automation capability to it?
3 Apr 2001 by Michael Dunn
This article shows how to add your own pages to Control Panel applets by writing a property sheet handler.
30 Sep 2002 by Ernest Laurentin
Shows how to use Microsoft Script Hosting inside existing ATL/WTL Application
27 Sep 2000 by Ly Nguyen
28 Aug 2001 by Fayez Al-Mutairi
An advanced COM component that provides file upload capabilities for your ASP pages.
22 Aug 2017 by navneet@ISM
I am working on a large piece of c++ code related to COM and ActiveX controls. In this I have one project compiling into .DLL file, and another project compiling to an .OCX file. Now, when I look into all registered Automation objects on my machine, it shows that .DLL file registered as .OCX 32...
22 Aug 2017 by KarstenK
The registration is done by some reg-files which the IDL-compiler is creating. So must look into your project and modify them. By the way: an ocx file is a dll. Change the GUID in the idl-file at all occurances!!!
17 Jun 2003 by YuHao
This small add-in provides DeveloperStudio Object Model in a hierarchy TreeView and enables users to see its properties.
3 Feb 2002 by Michael Dunn
An advanced utility that scans computers for missing hotfixes, and helps you download and install them.
12 Aug 2004 by Pascal Hurni
An implementation of a shell namespace extension that uses the system provided ShellView (SHCreateShellFolderView)