导航:[首页]->[wtl]->[VS2008 Express配置WTL]

#下载WTL 点击这里

#安装WTL 拷贝setup80x.js 到setup90x.js。将里面的8.0全部替换成9.0,双击安装

#下载VisualFC 点击这里。使用它创建向导,并链接库atlthunk.lib

#在VS2008中加入include目录 默认想到发现错误

    1>c:\users\king\desktop\wtl\wtl\stdafx.h(33) : error C2065: '_stdcallthunk' : undeclared identifier
    1>c:\users\king\desktop\wtl\wtl\stdafx.h(33) : error C2070: unknown-type: illegal sizeof operand

在stdafx.h中加入#include #include #include

    // Support for VS2005 Express & SDK ATL
    #ifdef _WTL_SUPPORT_SDK_ATL3

#参考

  1. http://blog.technicallyworks.com/2009/04/installing-wtl-wizard-in-visual-c-2008.html