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 SourceForge.net and Visual C++ 2008 Express Edition from Microsoft.com 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:
- Make a copy of the setup80x.js and rename it to setup90x.js.
- Open setup90x.js up and do a global search and replace from “8.0” to “9.0”.
- 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:
into the generated stdafx.h, right after this line
This worked on my machine anyway :)