How to use WTL 9.0 with Visual Studio Express 2013


Visual Studio Expression does not come with ATL headers such as atlbase.h required by WTL. The good news is Windows Driver Kit (WDK) have these files (older version, but works). We also need Windows SDK that provide header files such as windows.h and other lib files. In short, to use WTL with Visual Studio Express 2013, you need to download and install:

  1. Windows SDK (I used v7.0, higher version should work as well)
  2. Windows Driver Kit:
  3. Visual Studio Express
  4. WTL (latest version is 9.0, unzip and run /AppWiz/Setup.js to install AppWizard for Visual Studio 2013)

After you have all these packages installed on your machine, you can create a SDI project with WTL AppWizard. However, in order to compile, you need to do some configurations (the folder need to be set is shown in the images):

1.  Set the folder for header files, including WTL headers, ATL headers (come with WDK) and Windows headers (come with Windows SDK)


2.  Set the folder for resource headers



3.  Finally, add folders that contain lib files, including ATL lib files (32-bit and 64-bit version) and windows lib files (kernal32.lib etc.)



That’s it!


3 responses »

  1. Hi,
    Great article. How about 2013 community edition?

    I’ve tried compiling a few of the WTL 9 sample applications with visual studio 2013 community edition.

    Since community edition reported to be a free version of professional, should this work?

    First line of compiler output:

    c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlwin.h(2084): error C2065: ‘HMONITOR’ : undeclared identifier

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s