How to use WTL 9.0 with Visual Studio Express 2013

Standard

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: http://www.microsoft.com/en-us/download/confirmation.aspx?id=11800
  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)

ImageImage

2.  Set the folder for resource headers

ImageImage

 

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.)

ImageImage

 

That’s it!

Advertisements

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:

WordPress.com Logo

You are commenting using your WordPress.com 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