Click here to Skip to main content
11,571,155 members (64,223 online)
Click here to Skip to main content

Introduction to WTL - Part 1

, 30 Apr 2001 332.4K 78
Rate this:
Please Sign up or sign in to vote.
The 'what' and 'where do I get it' of WTL

What is the Windows Template Library you ask?

Brief history

In the beginning when ATL appeared, developers were happy. We had a way to write fast, small COM components. Well the happiness ended soon after when we found that we had to write code wrappers for any of the window's controls we wanted to use. So MS responded to our plight and gave us WTL, completely unfinished and unsupported (for now).

See WTL Documented for more information.

Features

  • All the power of C++
  • Thin wrappers for the common controls
  • A small but functional Application framework (minus the ever-popular Document-View Architecture)
  • Print and Print Preview support
  • Ports of MFC’s CPoint, CRect, CSize, CString, etc.
  • New Message cracking Macros, conceivably they’re an upgrade of the existing ones.

All this but no documentation! Oh well, we're all professionals and can read code, so for now that will have to suffice.

Where do you get it?

Thanks to Nenad Stefanovic of the WTL development team we now have 2 methods of downloading the WTL source file (Special thanks to Shannon McCoy for pointing this out).

Method 1

Click here to download the WTL source files.

Method 2

Go and get the Platform SDKs.

WTL resides in the Platform SDKs. To find and install WTL you need to download the latest release of the Platform SDKs. In the screen seen below, Expand the Source code tree item and select the Windows Template Library for download.

So, you have the SDKs installed, your ready to go... well almost. Don’t forget to add the WTL include path to Developer Studio. To do that in Developer Studio go to Tools | Options and click on the 'Directories' tab. Once you are there simply add the include path to the 'Include files' list.

What’s in the box?

Let’s take a look at the goodies we got. The WTL is setup so that all the code resides in header files; it's setup this way so that we have full control of what is been tacked into your project.

The Headers

File name Description
   
atlapp.h Message loop, interfaces, general app stuff
atlcrack.h Message cracker macros atlctrls.h Standard and common control classes
atlctrlw.h Command bar class atlctrlx.h Bitmap button, check list view, and other controls
atlddx.h Data exchange for dialogs and windows
atldlgs.h Common dialog classes, property sheet and page classes
atlframe.h Frame window classes, MDI, update UI classes
atlgdi.h

DC classes, GDI object classes

atlmisc.h

ATL ports of CPoint, CRect, CSize, CString, etc.

atlprint.h

Printing and print preview

atlres.h Standard resource Ids
atlscrl.h Scrollable windows
atlsplit.h Splitter windows
atluser.h Menu class

The Samples

Directory Description
   
MTPad

Multithreaded notepad sample

MDIDocVw

ATL version of the MDI sample

GuidGen

ATL version of the GuidGen sample

The App-Wizard

File Name Description
   
AtlApp60.Awx ATL/WTL AppWizard

And of course there is a 'readme.txt', which outlines the class hierarchy of the WTL. Sorry, I said there was no documentation, my bad Smile | :)

Thats it! You got the WTL and your ready to go.

Ben Burnett

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Ben Burnett
Student University of Lethbridge
Canada Canada
Ben was born in New Zealand and grew up in Mexico; however, he has lived in Canada for most of his adult life. He has traveled to a few places in Canada so far: British Columbia, Saskatchewan, Manitoba, Ontario and Nova Scotia, but has only ever lived in Alberta — all over Alberta. From Lethbridge to Calgary to Fort McMurray: he has seen most of what the province has to offer. He has also left the comfort of his—at the time—home country and gone abroad. In recent history he has been in China, New Zealand, the US, Central America and back to Canada (where he now resides).

He completed a degree at the University of Lethbridge, in Computer Science; worked for the University of Wisconsin-Madison in the Computer Sciences Department as a Systems Programmer for the Condor Research Project[^]; and is currently completing another degree at the University of Lethbridge, once again, in Computer Science.

Ben has been known to enjoy reading, watching movies, playing console games, and learning everything he can about computers. And, more importantly, with regards to his character: does not usually speaks about himself in the third person.

You may also be interested in...

Comments and Discussions

 
GeneralLatest WTL download Pin
SzeliTom18-Apr-12 10:02
memberSzeliTom18-Apr-12 10:02 
GeneralRe: Latest WTL download Pin
Ben Burnett18-Apr-12 18:41
memberBen Burnett18-Apr-12 18:41 
GeneralGood job Pin
kiol18-Feb-08 9:39
memberkiol18-Feb-08 9:39 
QuestionHow I can use WTL in VC++/ Visual Studio 2005 Pin
nmtdhbk22-Jun-06 16:50
membernmtdhbk22-Jun-06 16:50 
GeneralBorland c++ Pin
Sean Maxam16-Jan-06 13:42
memberSean Maxam16-Jan-06 13:42 
GeneralVC6 and appwiz Pin
Beyogus Deywd16-Feb-05 20:00
memberBeyogus Deywd16-Feb-05 20:00 
GeneralRe: VC6 and appwiz Pin
iamduyu9-May-07 14:14
memberiamduyu9-May-07 14:14 
QuestionHow to run setup.js Pin
faint_u27-Oct-04 15:41
memberfaint_u27-Oct-04 15:41 
AnswerRe: How to run setup.js Pin
STASH!30-Oct-04 8:04
memberSTASH!30-Oct-04 8:04 
QuestionCan tell me how install WTL7.0 on MSvc7.1? Pin
Farhawk11-Sep-03 21:41
memberFarhawk11-Sep-03 21:41 
AnswerRe: Can tell me how install WTL7.0 on MSvc7.1? Pin
faint_u10-Nov-03 19:55
memberfaint_u10-Nov-03 19:55 
AnswerRe: Can tell me how install WTL7.0 on MSvc7.1? Pin
Kukchin Kim4-Feb-04 19:15
memberKukchin Kim4-Feb-04 19:15 
QuestionWTL 3.1 or 7.0? Pin
tareqsiraj11-Jul-03 19:23
membertareqsiraj11-Jul-03 19:23 
AnswerRe: WTL 3.1 or 7.0? Pin
Michael Dunn11-Jul-03 20:09
sitebuilderMichael Dunn11-Jul-03 20:09 
QuestionWhy do we need WTL? Pin
anon1238-Feb-03 14:40
memberanon1238-Feb-03 14:40 
AnswerRe: Why do we need WTL? Pin
Soliant16-Feb-03 15:06
memberSoliant16-Feb-03 15:06 
QuestionHow to install WTL in C++ Pin
GOLDEN15-May-02 6:14
memberGOLDEN15-May-02 6:14 
AnswerRe: How to install WTL in C++ Pin
Ramon Casellas15-May-02 6:22
memberRamon Casellas15-May-02 6:22 
GeneralRe: How to install WTL in C++ Pin
GOLDEN16-May-02 5:36
memberGOLDEN16-May-02 5:36 
GeneralRe: How to install WTL in C++ Pin
xc25-May-02 22:45
memberxc25-May-02 22:45 
GeneralRe: How to install WTL in C++ Pin
zoom19-Nov-02 22:02
memberzoom19-Nov-02 22:02 
GeneralRe: How to install WTL in C++ Pin
ideras9-Jul-03 16:04
memberideras9-Jul-03 16:04 
GeneralRe: How to install WTL in C++ Pin
cc541617-Feb-05 16:33
membercc541617-Feb-05 16:33 
GeneralRe: How to install WTL in C++ Pin
nmtdhbk22-Jun-06 16:46
membernmtdhbk22-Jun-06 16:46 
GeneralRe: How to install WTL in C++ Pin
CuBr1-Sep-06 11:41
memberCuBr1-Sep-06 11:41 
GeneralRe: How to install WTL in C++ Pin
gankh1-Jan-06 17:42
membergankh1-Jan-06 17:42 
GeneralUsing Microsoft Agent Pin
iacchus3-Feb-02 16:25
memberiacchus3-Feb-02 16:25 
QuestionWTL and MFC together? Pin
Anonymous14-Jun-01 6:15
memberAnonymous14-Jun-01 6:15 
GeneralNew Link for WTL 3.1 Pin
Shannon McCoy23-Mar-01 23:35
memberShannon McCoy23-Mar-01 23:35 
GeneralCListBox Pin
markcarl22-Sep-00 14:10
sussmarkcarl22-Sep-00 14:10 
GeneralRe: CListBox Pin
Chuso24-Jan-01 5:45
memberChuso24-Jan-01 5:45 
GeneralRe: CListBox ( Damn html encode! ) Pin
Chuso24-Jan-01 5:48
memberChuso24-Jan-01 5:48 
GeneralTrouble downloading WTL Pin
Manuel13-Sep-00 4:54
sussManuel13-Sep-00 4:54 
GeneralRe: Trouble downloading WTL (solved) Pin
Petr Prikryl15-Jan-01 4:10
memberPetr Prikryl15-Jan-01 4:10 
GeneralGreat solution Pin
F Braem7-Feb-01 3:34
memberF Braem7-Feb-01 3:34 
GeneralRe: Trouble downloading WTL (solved) Pin
Michael Fink5-Mar-01 2:00
memberMichael Fink5-Mar-01 2:00 
GeneralRe: Trouble downloading WTL (solved) Pin
Petr Prikryl5-Mar-01 22:58
memberPetr Prikryl5-Mar-01 22:58 
GeneralPoor Windows Programmers! Pin
Fabio29-Aug-00 11:25
sussFabio29-Aug-00 11:25 
GeneralRe: Poor Windows Programmers! Pin
JWright6-Oct-00 6:46
sussJWright6-Oct-00 6:46 
GeneralRe: Poor Windows Programmers! Pin
jhalsey11-Oct-00 12:41
sussjhalsey11-Oct-00 12:41 
GeneralRe: Poor Windows Programmers! Pin
jhalsey11-Oct-00 12:42
sussjhalsey11-Oct-00 12:42 
GeneralRe: Poor Windows Programmers! Pin
jhalsey11-Oct-00 12:43
sussjhalsey11-Oct-00 12:43 
GeneralRe: Poor Windows Programmers! Pin
JWright13-Oct-00 5:42
sussJWright13-Oct-00 5:42 
GeneralRe: Poor Windows Programmers! Pin
Anonymous2-Nov-00 13:21
sussAnonymous2-Nov-00 13:21 
GeneralRe: Poor Windows Programmers! Pin
Fabio3-Nov-00 12:31
memberFabio3-Nov-00 12:31 
GeneralRe: Poor Windows Programmers! Pin
Crispy1-Apr-01 7:55
memberCrispy1-Apr-01 7:55 
Your pretty funny. Why attack to promote innovation... although really it seems more like an attack on window's programmers vs linux.

Heh.. I agree that we could use some more creativity in Windows, but why slam an article
pointing out something useful to get it?

Some of us have to work in the real world, and when the guy driving the paycheck says to
use atl, then information like this is useful.. wtl is a nice lightweight alternative to
mfc. A little change won't hurt.. and really, I think a lot of people are using
std::string anyway.. kinda hard not too if your already using the rest of the library.

These holy wars between linux and windows are funny. Windows programmers I think are
rarely religious about the platform. . . most of that is in defense and rebuttal to some
troll attempting to trash the evil empire.

Whatever.. I like Linux. But I'm paid to program in windows. And a library like WTL and ATL currently make my job easier so I have more time to work on things I like, like
games and linux.
GeneralRe: Poor Windows Programmers! Pin
S van Leent8-Jan-02 8:27
memberS van Leent8-Jan-02 8:27 
Generalassert(++critique != convaincant | réaliste) Pin
-o-m-24-Apr-01 8:19
member-o-m-24-Apr-01 8:19 
GeneralRe: Poor Windows Programmers! Pin
Anonymous8-Oct-01 17:55
memberAnonymous8-Oct-01 17:55 
GeneralRe: Poor Windows Programmers! Pin
Shannon McCoy15-Aug-02 23:27
sussShannon McCoy15-Aug-02 23:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150624.2 | Last Updated 1 May 2001
Article Copyright 2000 by Ben Burnett
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid