Windows Template Library

Windows Template Library (WTL) is a set of classes that encapsulate most Win32 API into lightweight classes for programming Windows operating system. WTL has the advantages of ATL and without the bulk of MFC. Although this is not officially supported by Microsoft, it is not being maintained on SourceForge.

With the unique environments on the Windows Mobile devices, WTL is ideal for writing mobile applications that are fast but still object oriented. WTL provides many features from MFC (but not as rich) without the size and it doesn't lock you into any particular programming style. You can freely mix Win32 and WTL code.

Using WTL for Windows Mobile development

Since WTL becomes an open source project, it has received many enhancements for use on Windows Mobile devices. Please note that it is unsupported by Microsoft. You are on your own if you use it. The good thing is that you have all the source code to figure it out if you run into difficulties. This page will provide more information from our experiences.

Download

You agree to the following disclaimer by downloading the code:

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

File Date Description
Windows Template Library 8.0 Jun 10, 2007 WTL 8.0 has been designed to work with Windows CE and includes a new application wizard to generate a program template.
Documentation

The main disadvantage to using WTL is the lack of documentation. To find out how to use a class, look at the source files. The basic windowing classes are from ATL, thus they are documented in the ATL for Windows CE section of the MSDN help files. Also, you will find a large community of developers that use WTL on the Internet. There are many attempts in documenting WTL and providing tutorials. The following links provide more information on WTL (most of them are for desktop Windows developments):

How to Get Started

  1. The best way to start is to read the articles in IDevResource.com for an introduction.
  2. Download the Windows Template Library 8.0 and get familiar with the basic classes.
  3. Install the WTL App Wizard.
  4. Generate a new application using the App Wizard and study the code.
  5. Download the library and experiment. Have fun!

Support

There is no support on WTL. Use at your own risk. Post your questions to Visual C++ forum on one of the developer newsgroup such as microsoft.public.pocketpc.