Skip to main content

Installing the WTL Application Wizard in Visual C++ 2008 Express Edition

I love Google Chrome, it is fast, elegant and beautiful. After I realized that it was written using WTL, I felt quite keen to learn about this library.

I downloaded WTL 8.0 from and Visual C++ 2008 Express Edition from only to realise that there is no WTL Wizard support for Visual C++ 2008 Express Edition.

WTL 8.0 ships with WTL/ATL application wizard but the setup script only supports the Visual C++ 2005 Express Edition (setup80x.js). However, the good news is that you can make it work with Visual C++ 2008 Express Edition in few simple steps:

  1. Make a copy of the setup80x.js and rename it to setup90x.js.
  2. Open setup90x.js up and do a global search and replace from “8.0” to “9.0”.
  3. Save the file and execute it.

If you are as lucky as I am, you should see a dialog that tells you that the wizard has been successfully installed.


Now, when you run Visual C++ 2008 Express Edition and go File –> New –> Project… you should now see the new WTL/ATL Application Wizard.


For some reason when I tried to create a new solution from the wizard, the generated code doesn’t compile. It gives me the following error:

stdafx.h(33) : error C2065: '_stdcallthunk' : undeclared identifier

To fix this problem I had to manually add this include:

#include <atlstdthunk.h>

into the generated stdafx.h, right after this line

#include <atlbase.h>

This worked on my machine anyway :)


  1. 0heheh, I remember doing this. same thing for visual studio 2010? :)

  2. Not sure zxcvbn, I haven't tried vs 2010 yet, let me know if you have :)

  3. For Visual Studio 2010, the Visual Studio team (apparently) dropped the C++ 'Tools\options\Projects and Solutions\C++ Directories' which is where you would normally include the WTL include directories (WTL\Include) and moved it into the individual project settings. Given this, I have yet to been able to get the WTL wizards to work with VS 2010 as they cannot find the WTL directories.

    What might work, though, is copying the WTL files into the VS 2010 directories. Of course, a newer version of WTL would have to be handled the same so this would really be a hack.

    Good luck.

  4. I made it to work for VS2008 installation by modifying the line 69 & 86 as show below in setup80x.js

    var strVC8Key = "HKLM\\Software\\Microsoft\\VisualStudio\\9.0\\Setup\\VC\\ProductDir";
    var strDestFolder = FileSys.BuildPath(strValue, "\\vcprojects");

    line 69) removed VCExpress and modified it as per the registry where visual studion vc dir is available
    line 86) removed VCExpress directory

  5. This is cool, seems a lot more organized, planned, and fair compared to the Wizard101 Award stuff that happened a few months ago.


Post a Comment

Popular posts from this blog

Load Testing ASP.NET Sites with JMeter

Following my previous post about using JMeter to test MOSS, I tried to figure out what are the bare minimum requirements of using JMeter against a plain ASP.NET website. I wrote a very simple ASP.NET web application with just a button, a text fields and a static label. This application displays the content of a text file in the static label when it loads and write content of the text field back to the file when the button is clicked. I found all I need to do in order to script this using JMeter is to extract __VIEWSTATE and __EVENTVALIDATION fields then send them back in the update request. My JMeter test plain looks like this:

Load Testing SharePoint (MOSS) Sites with JMeter

I have used JMeter for load testing few non-ASP.NET web sites before, however I could not get it to work with ASP.NET web sites. This is mainly due to ASP.NET ViewState and event validations, which stops a recorded JMeter script from being played back. Recently I worked on a MOSS project and we were looking for tools to perform load testing on the server. Many people said the load testing tool in Microsoft Team System for Testers works well with MOSS. However, it is quite expensive so I decided to give JMeter another go. After several hours of hacking, I actually got it to work and here’s how I did it. My test page is the pretty standard MOSS edit document property screen with few extra text fields added and the goal here is to use a JMeter script to change the document properties. Once I have a working script, I can configure JMeter to fire hundreds of instances of this script simultaneously to simulate the user workload. As shown in the screenshot below, the test plan contai

Coromandel Trip - Xmas 2019

Few weeks ago, my son watched a Youtube video about hot water beach and was really excited when I told him it is in New Zealand so we decided to take an impromptu trip there before Xmas. Hot water beach is actually only around 2.5 hours drive from Auckland but the wife didn't want to sit in the car for 5 hours in the same day. Fortunately we managed to find a nice holiday apartment in Whitianga despite busy holiday season, which is a nice small beach-side town only 30 minutes away from the hot water beach. Kids @ Whitianga beach Day 1 Hot water beach The best time to dig your own hot spa at the hot water beach is one hour on either side of the low tide, which was around 10:15am on the day. We decided to leave early and drove there first thing in the morning. We managed to get there by 10:45am but the beach was already packed with visitors. We tried to find an empty spot and started digging with our big garden spade (most people were using mini toy-like ones) but only c