我从作者网站上下了Samples,但是基本都编不过。
我的环境是VS2005,不知道各位有没有遇到类似问题。如果谁解决过类似问题,麻烦告知我。谢谢了。

解决方案 »

  1.   

    检查一下工程设置等,sample代码可能是针对vc6的,vs2005是新编译器了,有一些地方可能要自己修改一下
      

  2.   

    昨晚上我发信给那本书的作者了。
    译者是赖仪灵,咱们VC/MFC大板斑竹,不知道赖总有没有跑过那些Sample呢?
      

  3.   

    第一个项目我记得比较清楚,是“Log()”函数重载解析冲突。
    但是第二章就有个Solution的下的一个Project 打不开。
      

  4.   

    我晚上回家去吧Error 信息贴上来。
      

  5.   

    1>------ Build started: Project: PiSvrPS, Configuration: Debug Win32 ------
    1>Checking for required files
    1>Compiling...
    1>_PiSvr_p.c
    1>.\_PiSvr_p.c(95) : fatal error C1189: #error :  You need a Windows 2000 or later to run this stub because it uses these features:
    1>Build log was saved at "file://e:\My Code\AtlInternals2eSrc\src\Chapter 01\PiSvr\Attributed\PiSvr\DebugPS\BuildLog.htm"
    1>PiSvrPS - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
    ------------------------------------以上是PiSvr.sln,就是这个书上第一个例子中PiSvrPS.vcproj的Error Message。
    按照提示信息,应该是说我系统版本太低。但我是Vista,理论上应该是比Win2000更新的版本才是。