按照网上的提示 将7.1中的setup.js拷贝下来 放到WTL8.0解压后的文件夹,双击运行完成,生成Winzard。利用向导创建 Dialog Based 运行后报错。
c:\wtl80\include\atlapp.h(1702) : error C2065: 'REG_QWORD' : undeclared identifier
c:\wtl80\include\atlapp.h(1816) : warning C4018: '!=' : signed/unsigned mismatch
d:\vc601\stdafx.cpp(8) : error C2856: #pragma hdrstop cannot be inside an #if block请问如何解决??

解决方案 »

  1.   

    http://blog.csdn.net/henry_sea/article/details/6212763
    看看这里
      

  2.   

    我刚刚用这方法试了一下,再把那个WTL的include目录设置在菜单-工具-选项-目录-include file下再编译没问题
      

  3.   

    我的电脑上同时安装了VS2008 和VC6 
     我也是先解压的WTL8.0 然后注册setup9.0.js  然后又下载了WTL7.1 将其中的appwiz6.0拷贝wtl8。0中 
    运行成功后,再设置目录 编译 出现报错
    很奇怪 是否是冲突了导致?
      

  4.   

    提示报错的位置:
    #ifndef _WIN32_WCE
    LONG SetQWORDValue(LPCTSTR pszValueName, ULONGLONG qwValue)
    {
    ATLASSERT(m_hKey != NULL);
    return ::RegSetValueEx(m_hKey, pszValueName, NULL, REG_QWORD, reinterpret_cast<const BYTE*>(&qwValue), sizeof(ULONGLONG));
    }
    #endif
      

  5.   

    错误位置:
       Compiling resources...
    Compiling...
    stdafx.cpp
    c:\wtl80\include\atlapp.h(1702) : error C2065: 'REG_QWORD' : undeclared identifier
    c:\wtl80\include\atlapp.h(1816) : warning C4018: '!=' : signed/unsigned mismatch
    d:\test01\stdafx.cpp(8) : error C2856: #pragma hdrstop cannot be inside an #if block
    Error executing cl.exe.Test01.exe - 2 error(s), 1 warning(s)提示的是 WTL中的设置。