2009-12-10

编译出现错误error C2039: 'GetWindowLongPtr' : is not a member of '`global namespace''

这是VC6编译中遇到的。
1,请安装SDK。VC6适用的最高版本SDK是February 2003。安装后请确认相应的目录已经在MSVC中添加。
2,如果已经安装SDK且设置了目录仍然出现问题,那么:
Take "Include directories" from tools / options menu and move the latest platform SDK include paths to top.
See http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/17e36619-8871-484a-aab4-2ea0e82a75f9/

No comments: