This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 

How to install Windows Template Library (WTL) in Visual C++ or eMbedded Visual C++


Applies To

  • Visual C++ 6.0
  • eMbedded Visual C++ 3.0
  • eMbedded Visual C++ 4.0
  • Visual C++ 2005
  • Windows CE .net 4.1 Standard SDK
  • Windows CE .net 4.2 Standard SDK
  • Windows CE .net 5.0 Standard DSK
  • Pocket PC, Pocket PC 2002, Pocket PC 2003, Smartphone 2003
  • Windows Template Library (WTL) 3.0, 7.0, 7.1, 7.5, 8.0, 9.0, 9.1


This article outlines how to install Windows Template Library (WTL) version 7.5 into Visual C++, but the instructions are equally valid for any version of the WTL.

How To

To install WTL:

  1. Create a new folder named 'WTL75' within the same file system permissions scope as the rest of the Windows CE include files. For example, for eMbedded Visual C++ 4.0 create:
    C:\Program Files\Microsoft eMbedded C++ 4.0\WTL75
  2. Extract the contents of WTL75.exe into the folder that you created in step 1
    WTL 7.5 Extracted Files
  3. Open eMbedded Visual C++ or Visual C++ 6.0 / 2005
  4. Click Tools > Options...
    eVC++ 4.0 Tools > Options
  5. Scroll along the tabs row until you find the Directories tab and click on it
  6. Ensure that the 'Show directories for:' drop down is set to "Include files"
  7. For each platform and then in turn each and every CPU associated with that platform add a new line pointing to the include sub-folder located in the path you created in setp 1 e.g.
    C:\Program Files\Microsoft eMbedded C++ 4.0\WTL75\include
    Platform Selection CPU Selection New Path
  8. Repeat for each CPU and supported platform
  9. Click OK to save changes and then exit Visual C++