Click here to Skip to main content
15,885,757 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 Updated

ATL 

19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
17 Feb 2002 by <b>T</b>om <b>C</b>ollins
Shows how to develop ATL-Objects to extend VB-Script. Uses ISharedPropertyGroupManager to keep data in memory. Supervises MSDEV-shutdown.
11 Dec 2013 by @BangIndia
I have refered the following linkhttp://www.integration.co.nz/FAQ-ClientService.htm[^]To indegrage the Dialog box with my service exe. but its throughing error at create option. I am using project as "Use MFC support with shared dll".
31 Jul 2001 by @deel@bbas
A simple COM server that is based on multiple inheritance
3 Apr 2009 by _8086
union u{ char ch[2]; int i;};int main(){ union u x={0,2}; cout
13 Feb 2013 by __UFNHGGI_H__
template class MyTempl1{public: void F1() { const char* typname = typeid(T).name() + 6; printf("%s\n", typname); }};class Cl1 : public MyTempl1{};:D
27 Sep 2011 by Aamir Butt
This is an article just to describe how to use WMI with Visual C++ 6. I had to do this for one of my projects and I finally came up with this solution. I hope this will be beneficial to others as well.
30 Nov 2013 by aasikRaja
I developed text overlay filter extends from CTransInplaceFilter which displays a default text given inside code. I want a text overlay filter which receives 'text while graph is running'. That is the filter displays text when i given any 'string' or else not..Can i develop this with ATL...
12 Sep 2012 by aasim abdullah
Why we should avoid the NOLOCK table Hint in DELETE/UPDATE queries.
12 Sep 2012 by aasim abdullah
To find out whose birthday is coming in a given number of days is very simple.
15 Mar 2003 by Abbas_Riazi
A Shell Extension Context Menu to Change Skin of Windows Explorer
26 Apr 2011 by AbhiSun
Hi All,I am updating a vc++ 2003 ATL/MFC project to vc++2008. After that I was unable to see some ATL controls hosted on MFC window.Now, I want to remake one of those ATL controls (pie chart in our case) and host in a MFC window. What is the recommended methodology to do this?thank...
24 Apr 2011 by achal3754
Hi,I am using ATL ( atldbcli.h) CCommand interfaces for my application. I need to count the number of records of a table.I have tried executing (SELECT COUNT(*) from Table_Name) query but not able to retrieve the result.CCommand...
11 Feb 2010 by Adeel Mirza
So what would you suggest, I have resolved the ambuguity errors by making slight modification. For examplePreviously it was.. CEdit m_ctlUsedDuration;I changed it to WTL::CEdit m_ctlUsedDuration;Now the compiler is able to recognize that these classes belong to ATL not...
16 Feb 2010 by Adeel Mirza
Hi Allen,I am using an existing MS Office Addin developed in ATL COM.I want to provide this kind of print and print preview functionality to it. Now MFC Extension DLL can't be used in an ATL COM Application, so is it possible to create an MFC Regular DLL and then call it from my ATL COM...
18 Feb 2010 by Adeel Mirza
This project already has 100s of files, resources. Creating a new ATL Project and adding all these files is not gonna be fun. These erroes comes if my active build is Debug mode, In Release mode I just receive 2 errors1>uafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined...
5 Aug 2014 by Adnan Shaheen
I want to make a context menu item entry on disk management console in mmc.How to do it? Does any one have some sample that'd be great.
28 Aug 2001 by Adrian Bacaianu
This article shows how to make one ATL COM component with crypt/decrypt functions and how to use it in ASP programs. It shows also how to register a component in MTS.
19 May 2002 by Adrian Bacaianu
This article shows how to create one ATL COM component using the WinInet functions, how to use it in ASP programs and how to test it from the Visual Basic client. It also shows how to use multithreading support in this component.
19 May 2002 by Adrian Bacaianu
This module is designed to solve the old problem of directory replication.
16 May 2002 by Adrian Bacaianu
Sample of using ISAPI extension to give online data to graphical applets.
28 Jun 2002 by Adrian Bacaianu
This article will demonstrate how to build and use a COM Add-In using Visual Basic. An useful sample is also provided.
9 Sep 2002 by Adrian Bacaianu
A good approach to build an ISAPI web application using XML and XSL
18 Feb 2009 by Adrian Dorache
Component used to convert a numeric value into English/Romanian words in Excel
26 Feb 2009 by Adrian Dorache
Scripting the clipboard content in Windows Script Host.
27 May 2010 by Aescleal
If you're programming in C, then:strncpy( q, p, 499 );q[499] = '\0';will do the trick and work however long the string is. If you'd like to obfuscate things a bit more then you can combine the two lines into one by exploiting the return value of strncpy:strncpy( q, p, 499 )[ 499 ]...
16 Oct 2010 by Aescleal
If you're using C++ there's no reason to use printf or the whole god awful family of C relics. Use a stream. Then you get type safety and you won't try reading return addresses off the stack to interpret as strings. Consider rewriting along the lines of:int main(){ int d = 20; ...
21 May 2012 by Aescleal
In addition to the references Pablo's given you have a look at "Essential COM" by Don Box. It's a bit dated but still the definitive tutorial on COM programming.Another thing to watch out for... Implementation inheritance is the tightest form of coupling you can get between two classes. By...
10 Feb 2016 by Aescleal
Your exported function doesn't look like a COM object to me. I'm not a great expert on C# but if all you've got is a C function can't you just call it directly after importing it:class urgle{ [DllImport("test.dll")] public static extern UINT Find();};is the sort of thing you need.
2 Jun 2009 by agetina
I can read the prototypes for windows.h in the include folder (I have installed dev c++) but i want a list of explained functions. I don't know for what to use each of them.Thank you! modified on Wednesday, June 3, 2009 4:29 AM
14 Nov 2001 by Agus Kurniawan
Simple program for an Active Server Component that handles cookies
16 Aug 2009 by Ahmed Charfeddine
?Thanks. Easy Profiler : a compile-time profiler for C++www.potatosoftware.commodified on Sunday, August 16, 2009 5:41 PM
29 Sep 2002 by Ahmed Ismaiel Zakaria
The fastest, easy way to copy files from different folders at the same time
22 Feb 2010 by ahmed34
i m student of electronics engg from Ssuet karachi working on Fyp i want to know abt the details of a rs 232 gsm modem ,currently in use of siemens lab!when i come to know the exact model i will inform u thanks!
29 May 2003 by Aisha Ikram
How to automatically send customized emails messages and attachments?
9 Jan 2010 by Ajay Vijayvargiya
Since Windows Vista supports "India' English", and has the following definition:0x4009 India (IN) 0x10 SUBLANG_ENGLISH_INDIA Visual Studio takes this as the project's language.While creating new project, one should select 'English (US)' as 'Resource Language' in Project Wizard.
16 Oct 2010 by Ajay Vijayvargiya
Perform Code Analysis with your code with /analyze switch with your Visual C++ compiler. You need to have Team System or the Ultimate version to do that.
14 Aug 2004 by Akash Kava
Getting the History from Internet Explorer in MFC.
12 Sep 2001 by Alan Wen
This is a 3-tier application. A COM component returns SQL data in XML format, then using XSLT to transform to HTML at client side. By using XML, all the data can be sort, split into pages locally, that will give users a quick response!
3 May 2011 by Albert Holguin
error c2760[^] is a casting error, not likely to be thrown for DECLARE_REGISTRY_RESOURCEID, maybe its an error with the public CComCoClass template inheritance.If you comment out the line before compiling, do you get the same error? That would tell you for sure it that's the line causing...
18 Apr 2012 by Albert Holguin
You should be able to call AfxGetMainWnd() from the exported function and get the top-level window from the thread calling the exported function (may return NULL if there's no window associated with the thread).See...
20 Jul 2000 by Ales Krajnc
A wrapper class for most common IStorage methods and API calls.
28 Jul 2001 by Ales Krajnc
An include file that allows you to specify colors by name instead of RGB value
28 Aug 2009 by Alex Blekhman
A simple Calendar utility that demonstrates basic Shell extensibility techniques: desk band, tray notification icon, locales.
14 Oct 2009 by Alex Blekhman
Example of handling real-life challenges when hosting WebBrowser control: separate creation of hosting window and the control, keyboard shortcuts, control's dimensions, etc.
26 Jan 2004 by Alex Kolesnichenko
Tutorial article about how to build components with rich functionality using attributed ATL.
31 Jan 2005 by Alex Mol
24 May 2000 by Alex Turc
Build a grid using ATL, STL and Win32 API.
7 Nov 2013 by Alexander Chernosvitov
ActiveX component for 3D visualization, embedded in different client applications.
13 Apr 2008 by Alexandre GRANVAUD
Automate your data classes initialization from an XML file.
1 Apr 2001 by Alpesh Makwana
To Generate XML from any data source
21 Sep 2005 by Alweit
An attempt to create a WinZip-like Extract dialog.
13 Jul 2009 by amatecki
The article describes how to use the Microsoft's UPnP Control Point API for finding and controlling UPnP devices, and includes a description of simple library to facilitate the application of Control Point API in your own programs, together with an example of MFC and WinForms applications.
21 Mar 2016 by ameyakoshti
Hello I am doing computer engineering and i needed some guidanceregarding my project.1st of all i want to know whether it is possible to disable usb portsand CD rom "POWER" through VC++.If yes then could you please guide me on it?Thanks
8 Jan 2010 by amihar1727
how to implement event sink to enable the developed application to listen to event made by this three browsers: Internet explorer, mozilla firefox and google chrome? the application is a stand-alone application running in a network..thanks!^^>>sample events: simple events like when...
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...
3 Apr 2001 by Amit Dey
An ATL Component that uses ADO for data.
8 May 2001 by Amit Dey
This article shows how to handle custom events generated in a VB ActiveX component in a Visual C++ client.
30 Apr 2003 by Amit Dey
This article shows how to program an Outlook2000/2K+ COM addin using a pure ATL COM object.
13 Apr 2003 by Amit Dey
Writing a Word Addin using COM and VB Macros
8 Sep 2005 by Anand Manikiam
. This article explains how to add and web browser ActiveX to your project to developer your own customized web browser.
4 Oct 2005 by Anatoly Ivasyuk
A generic class that enables standard tab and accelerator processing in modeless ATL dialogs.
6 Apr 2005 by Andrea Cacciarru
This article explains how to publicize and retrieve data from custom Outlook forms programmatically.
3 Mar 2003 by Andreas Saurwein
Template based file and directory enumeration class.
27 May 2008 by Andrew Birt, Rahul Ravikumar
A framework for distributing scientific models over the web
16 Nov 1999 by Andrew Garbuzov
A port of my splitter ActiveX control with MFC to ATL.
20 Feb 2009 by Andrew McAuley
Hi there,I'm new to C++ and i've got a basic project i've made up, just to play around with templates. It consists of the following classes: - enumerable (used much like IEnumerable in .NEt Framework code) - list [inherits from enumerable]...
17 Mar 2000 by Andrew Nosenko
A set of VC++ helpers and patterns to help automate some routine coding tasks.
24 Apr 2012 by Andy Bantly
C++ class to authenticate an SMTP server connection
22 Dec 2008 by Anem Mahesh
Open your resource script file, and delete this part from it://///////////////////////////////////////////////////////////////////////////// English (U.S.) (unknown sub-lang: 0x10) resources#if !defined(AFX_RESOURCE_DLL) ||...
29 Nov 2008 by Angel Kafazov
This article explains how to write your custom DirectShow SampleGrabber filter for Windows Mobile.
18 Dec 2009 by Anirudh Kishan
Just imagine how your arguments would be passed.If it is passed as 1.2 and 2.2 to the (int,int) function then it would to truncated to 1 and 2.If it is passed as 1.2 and 2.2 to the (float,float) it will be processed as is.So here is where the ambiguity creeps in.I have found two...
1 Jun 2012 by Ankit_Guru
trying using MDI form.1. In the parent form change the mdicontainer property to true.2. Now call the second form as formChild.show(formParent).3. Last in formChild's form load event write me.dock = dockstyles.bottom and ur done.
19 May 2011 by ankitjoshi24
I found a way to disable the CD ROM using regedit. Now I am not sure how you can use it in VC++ but you can atleast havea look at the way of disabling it through regeditTo Disable CD-RomHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDRomDouble Click on AutoRun and change the value...
5 Aug 2012 by Anna-Jayne Metcalfe
Theme support in Visual Studio 2012
18 Feb 2010 by annarao
class a{public void dis(){System.out.println("no argument");}public void dis(int i){System.out.println("one argument");}public void dis(int i,int j){System.out.println("two argument");}class maindemo{public static void main(String aggs[]){a=obj=new...
21 Oct 2012 by anonymous1310
Hi I have searched for any example of any IE toolbar developed in vc++ i looked into "Internet Explorer Toolbar (Deskband) Tutorial[^]" I downloaded that code,But i am not able to run that code ,it is giving me error that It can't be run(While running from visual studio 2010,In windows 7...
6 Nov 2012 by anonymous1310
HiI want to know form(eg:gmail)submission event.Can i detect this event using iwebbrowser2?Thanks in advance.
7 Nov 2010 by anonymous_anonym
Hi,I need a program which reads an image from a USB webcam every second (or even faster, if that's possible) and write it to harddisk as JPEG.My only problem is, that my program is too slow. Getting the picture from the webcam needs about 3 seconds... (Render() and WaitForCompletion() are...
8 Nov 2010 by anonymous_anonym
I don't understand how this can help me with my problem with SampleGrabber...All I ask is how I can grab multiple frames in a row with SampleGrabber. Setting the SetOneShot() to false and then what else do I have to do?
16 Oct 2005 by Anthony Dass
Developing a high-performance provider in WMI using C++.
26 Nov 2010 by Antonio Sandoval
Wrapper C# class written in C++\CLI and a sample implementation in C# to render PDF files.
27 May 2010 by Anu Koshy
strcpy(q,p); works fine.but if(strlen(p)>500)then strncpy(q, p, 499);q[500-1] = '\0';q has to be terminated with '\0'
31 May 2010 by Anu Koshy
if it is a text control, set "No Prefix" as True.That should solve the problem. :)
12 Aug 2016 by AnvilRanger
Are these computers on a network that you or your company controls? One of the only ways to do this would be using Group Policies from you DC. You can talk to your network administrator about this.If the computer you want to disable protected mode on is a remote computer not part of your...
27 May 2010 by Apriorit Inc, andrew_lyakhov
In this article, we examine the problems of program control of the Microsoft Hyper-V hypervisor with the help of the C++ language and WMI technology.
27 Jan 2009 by arad.moradi
i don't know what is the reason of of error.i write it with c++ & i send what is it about.it is the code:#include #include #include using namespace std;class cart{public: cart(char a[2]="paq"){ cout
2 Jun 2009 by araud
Your own transport for DCOM
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...
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.
17 Dec 2007 by Arif Zaman
An article on a Scriptable ActiveX Web Control using ATL.
5 Aug 2012 by armagedescu
As suggestions. If you return bool then you have to return false/true instead of FALSE/TRUE, because you are not using BOOL. Second, don't name the class Handle. Instead of CConnectionHandle use CConnection name, or even better CDatabase. Instead ir CStatementHandle use CStatement or CQuery, and...
19 Dec 2012 by armagedescu
It is easy.//ATL ActiveX wnd for the nested control, best place is as a class memberCAxWindow wndAnimationWnd; //best in OnCreate:wndAnimationWnd.Create(hWndOfYourControl, //hwnd of outer control &rect_ForEmbededAnimation, //client coordinates inside the outer control ...
17 Feb 2002 by Armando Pajuelo
An App-Wizard which creates template WTL apps.
27 May 2005 by Armen Hakobyan
Media Player plug-in turning computer off when media ends
29 May 2008 by arnshea
A short example of how to access a managed ArrayList of Strings from Native C++/ATL
3 Dec 2016 by Arthur V. Ratz
You would better to use the previous version of Visual Studio such VSS6.0, in which there's no IntelliSense, since the ATL is old for Visual Studio 2015 intended for C#.NET programming.
7 Sep 2011 by Arun Parthasarathy
Plesase go to the Tools->Options menu.Options dialog opens.Choose projects and solutions.Choose VC++ directories.In "show directories for : ", choose "Include Files".Here add the directory path where your file exits.and give ok.Now try to build your project.
16 Apr 2011 by Aschratt
Hi everyone,I am writing a library using C++ and want to make it portable and accessable in other languages (like .NET languages). This is why I decided to wrap the library inside an COM DLL, using ATL.Now my problem is that I am unable to pass ANSI strings from the library through the...