You receive a compile error in your ATL project after you install the Windows SDK 6.1 with Visual Studio 2008 Service Pack 1
Consider the following scenario. You install Microsoft Visual Studio 2008 Service Pack 1 (SP1). Or, you install some updates for Visual Studio 2008 SP1. Then, you install the Windows Software Development Kit (SDK) 6.1. In this scenario, you receive the following compiler error message in your Active Template Library (ATL) projects:
error C2039: '_Swap_adl' : is not a member of 'std' c:\program files\microsoft visual studio 9.0\vc\include\xutility 2764
error C3861: '_Swap_adl': identifier not found c:\program files\microsoft visual studio 9.0\vc\include\xutility 2764
The Windows SDK for Windows Server 2008 and the .NET Framework 3.5 (Windows SDK 6.1) shares several C Runtime files with Visual Studio 2008. The Windows SDK 6.1 has the Visual Studio 2008 RTM version of these files.
If you install Windows SDK 6.1 after you install Visual Studio 2008 Service Pack 1 or a later version of Visual Studio 2008, unversioned files that are shared between the Windows SDK 6.1 and Visual Studio 2008 are rolled back to the RTM version.
There are incompatibilities between the Visual Studio 2008 RTM file versions and newer versions of the C Runtime files. Therefore, a compiler error can occur when these incompatible files are mixed together.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
The following file is available for download from the Microsoft Download Center:
Collapse this image Expand this image
Download the package now.
(http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=239a9a68-211b-4ceb-9c2c-392b5ba5f617)
Release Date: Tuesday, September 8, 2009
For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591
(http://support.microsoft.com/kb/119591/
)
How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
Prerequisites to install this security update To install this security update, you must have Windows Installer 3.1 or a later version installed on the computer. To obtain the latest version of Windows Installer for the computer, visit the following Microsoft Web site:
Security update replacement information This security update does not replace any other security update.
Update removal information After you install this update, you can uninstall it by using the
Add or Remove Programs item in Control Panel.
Command-line switches for this update You can find information about the various command-line switches that this update supports on the following MSDN Web site:
For more information about Windows Installer, visit the following MSDN Web site:
The English (United States) version of this software update installs files that have the attributes that are listed in the following tables. The dates and times for these files are listed in Coordinated Universal Time (UTC). The dates and times for these files on your local computer are displayed in your local time and with your current daylight saving time (DST) bias. Additionally, the dates and times may change when you perform certain operations on the files.
Collapse this table Expand this table
File name File version File size Date Time chkstk.obj 1,373 12-Jul-2009 22:09 cl.exe.config 293 12-Jul-2009 22:07 array 16,417 12-Jul-2009 22:09 array 16,417 12-Jul-2009 22:09 msvcm90.amd64.pdb 1,838,080 12-Jul-2009 22:09 msvcm90.i386.pdb 1,805,312 12-Jul-2009 22:07 msvcm90.ia64.pdb 1,944,576 12-Jul-2009 22:09 msvcm90d.amd64.pdb 2,255,872 12-Jul-2009 22:09 msvcm90d.i386.pdb 2,223,104 12-Jul-2009 22:07 msvcm90d.ia64.pdb 2,354,176 12-Jul-2009 22:09 msvcp90.amd64.pdb 3,943,424 12-Jul-2009 22:09 msvcp90.i386.pdb 3,582,976 12-Jul-2009 22:07 msvcp90.ia64.pdb 4,754,432 12-Jul-2009 22:09 msvcp90d.amd64.pdb 4,918,272 12-Jul-2009 22:09 msvcp90d.i386.pdb 4,336,640 12-Jul-2009 22:07 msvcp90d.ia64.pdb 5,671,936 12-Jul-2009 22:09 msvcr90.amd64.pdb 4,770,816 12-Jul-2009 22:09 msvcr90.i386.pdb 4,762,624 12-Jul-2009 22:07 msvcr90.ia64.pdb 5,344,256 12-Jul-2009 22:09 msvcr90d.amd64.pdb 5,860,352 12-Jul-2009 22:09 msvcr90d.i386.pdb 5,639,168 12-Jul-2009 22:07 msvcr90d.ia64.pdb 5,835,776 12-Jul-2009 22:09 random 83,273 12-Jul-2009 22:09 random 83,273 12-Jul-2009 22:09 tuple 12,371 12-Jul-2009 22:09 tuple 12,371 12-Jul-2009 22:09 xxfunction 9,845 12-Jul-2009 22:09 xxfunction 9,845 12-Jul-2009 22:09 algorithm 195,310 12-Jul-2009 22:09 almapdll.lib 18,736 12-Jul-2009 22:09 almap.lib 17,808 12-Jul-2009 22:09 binmode.obj 3,777 12-Jul-2009 22:09 comdef.h 8,731 12-Jul-2009 22:07 commode.obj 10,615 12-Jul-2009 22:09 complex 32,105 12-Jul-2009 22:09 crtassem.h 955 12-Jul-2009 22:09 crtassem.h 1,298 12-Jul-2009 22:09 crtdefs.h 97,327 12-Jul-2009 22:09 deque 39,247 12-Jul-2009 22:09 functional 35,120 12-Jul-2009 22:09 fp10.obj 12,065 12-Jul-2009 22:09 hash_map 9,462 12-Jul-2009 22:09 hash_set 8,183 12-Jul-2009 22:09 intrin.h 89,129 12-Jul-2009 22:09 invalidcontinue.obj 12,051 12-Jul-2009 22:09 iosfwd 24,926 12-Jul-2009 22:09 libcmt.lib 9,217,232 12-Jul-2009 22:09 libcmt.lib 12,760,762 12-Jul-2009 22:09 libcmt.lib 10,006,920 12-Jul-2009 22:09 libcmt.pdb 167,936 12-Jul-2009 22:07 libcmt.pdb 167,936 12-Jul-2009 22:09 libcmt.pdb 167,936 12-Jul-2009 22:09 libcmtd.lib 11,365,492 12-Jul-2009 22:09 libcmtd.lib 16,473,870 12-Jul-2009 22:09 libcmtd.lib 12,787,826 12-Jul-2009 22:09 libcmtd.pdb 176,128 12-Jul-2009 22:07 libcmtd.pdb 176,128 12-Jul-2009 22:09 libcmtd.pdb 176,128 12-Jul-2009 22:09 libcpmt.lib 5,349,934 12-Jul-2009 22:09 libcpmt.lib 8,755,304 12-Jul-2009 22:09 libcpmt.lib 6,963,462 12-Jul-2009 22:09 libcpmt.pdb 331,776 12-Jul-2009 22:07 libcpmt.pdb 339,968 12-Jul-2009 22:09 libcpmt.pdb 339,968 12-Jul-2009 22:09 libcpmtd.lib 6,781,270 12-Jul-2009 22:09 libcpmtd.lib 11,713,794 12-Jul-2009 22:09 libcpmtd.lib 9,301,874 12-Jul-2009 22:09 libcpmtd.pdb 356,352 12-Jul-2009 22:07 libcpmtd.pdb 356,352 12-Jul-2009 22:09 libcpmtd.pdb 356,352 12-Jul-2009 22:09 link.exe.config 293 12-Jul-2009 22:07 loosefpmath.obj 12,352 12-Jul-2009 22:09 memory 50,168 12-Jul-2009 22:09 Microsoft.VC90.CRT.man 1,862 12-Jul-2009 14:30 Microsoft.VC90.CRT.man 1,861 12-Jul-2009 14:47 Microsoft.VC90.CRT.man 1,860 12-Jul-2009 19:08 microsoft.vcxx.crt.i64_msm.msm 1,026,048 12-Jul-2009 20:23 microsoft.vcxx.crt.x86_msm.msm 599,552 12-Jul-2009 20:12 microsoft.vcxx.crt.x64_msm.msm 632,832 12-Jul-2009 20:19 Microsoft.VC90.DebugCRT.man 1,870 12-Jul-2009 20:10 Microsoft.VC90.DebugCRT.man 1,869 12-Jul-2009 20:10 Microsoft.VC90.DebugCRT.man 1,868 12-Jul-2009 20:11 microsoft.vcxx.debugcrt.i64_msm.msm 1,796,608 12-Jul-2009 20:23 microsoft.vcxx.debugcrt.x86_msm.msm 824,320 12-Jul-2009 20:12 microsoft.vcxx.debugcrt.x64_msm.msm 828,928 12-Jul-2009 20:18 microsoft.vcxx.debugmfc.i64_msm.msm 4,759,040 12-Jul-2009 22:09 microsoft.vcxx.mfc.i64_msm.msm 2,600,960 12-Jul-2009 22:09 microsoft.vcxx.mfcloc.i64_msm.msm 242,176 12-Jul-2009 22:09 Microsoft.VisualC.STLCLR.dll 9.0.30729.4148 41,984 14-Jul-2009 12:21 msvcm90d.dll 9.0.30729.4148 429,568 12-Jul-2009 20:10 msvcm90d.dll 9.0.30729.4148 312,832 12-Jul-2009 20:11 msvcm90.dll 9.0.30729.4148 245,760 12-Jul-2009 14:30 msvcm90.dll 9.0.30729.4148 324,096 12-Jul-2009 14:47 msvcm90.dll 9.0.30729.4148 225,280 12-Jul-2009 19:08 msvcm90d.dll 9.0.30729.4148 333,312 12-Jul-2009 20:10 msvcmrt.lib 1,529,808 12-Jul-2009 22:09 msvcmrt.lib 1,697,612 12-Jul-2009 22:09 msvcmrt.lib 1,846,526 12-Jul-2009 22:09 msvcmrtd.lib 1,625,960 12-Jul-2009 22:09 msvcmrtd.lib 1,804,926 12-Jul-2009 22:09 msvcmrtd.lib 1,956,848 12-Jul-2009 22:09 msvcp90d.dll 9.0.30729.4148 2,513,744 12-Jul-2009 20:10 msvcp90d.dll 9.0.30729.4148 872,256 12-Jul-2009 20:11 msvcp90.dll 9.0.30729.4148 853,312 12-Jul-2009 14:30 msvcp90.dll 9.0.30729.4148 1,466,192 12-Jul-2009 14:47 msvcp90.dll 9.0.30729.4148 569,664 12-Jul-2009 19:08 msvcp90d.dll 9.0.30729.4148 1,120,576 12-Jul-2009 20:10 msvcprt.lib 1,654,516 12-Jul-2009 22:09 msvcprt.lib 2,140,986 12-Jul-2009 22:09 msvcprt.lib 1,686,818 12-Jul-2009 22:09 msvcprtd.lib 1,827,186 12-Jul-2009 22:09 msvcprtd.lib 2,369,332 12-Jul-2009 22:09 msvcprtd.lib 1,860,040 12-Jul-2009 22:09 msvcr90d.dll 9.0.30729.4148 3,603,776 12-Jul-2009 20:10 msvcr90d.dll 9.0.30729.4148 1,178,960 12-Jul-2009 20:11 msvcr90.dll 9.0.30729.4148 624,448 12-Jul-2009 14:30 msvcr90.dll 9.0.30729.4148 1,505,600 12-Jul-2009 14:47 msvcr90.dll 9.0.30729.4148 653,120 12-Jul-2009 19:08 msvcr90d.dll 9.0.30729.4148 1,350,976 12-Jul-2009 20:10 msvcrt.lib 1,360,068 12-Jul-2009 22:09 msvcrt.lib 1,585,296 12-Jul-2009 22:09 msvcrt.lib 1,357,322 12-Jul-2009 22:09 msvcrtd.lib 1,392,990 12-Jul-2009 22:09 msvcrtd.lib 1,642,420 12-Jul-2009 22:09 msvcrtd.lib 1,401,634 12-Jul-2009 22:09 msvcurt.lib 15,375,474 12-Jul-2009 22:09 msvcurt.lib 15,737,156 12-Jul-2009 22:09 msvcurt.lib 15,882,490 12-Jul-2009 22:09 msvcurtd.lib 16,952,234 12-Jul-2009 22:09 msvcurtd.lib 17,303,546 12-Jul-2009 22:09 msvcurtd.lib 17,454,710 12-Jul-2009 22:09 newmode.obj 10,543 12-Jul-2009 22:09 nmmintrin.h 3,967 12-Jul-2009 22:09 noarg.obj 6,955 12-Jul-2009 22:09 nochkclr.obj 2,998 12-Jul-2009 22:09 noenv.obj 5,378 12-Jul-2009 22:09 nothrownew.obj 15,823 12-Jul-2009 22:09 policy.x.xx.microsoft.vcxx.crt.i64_msm.msm 55,296 12-Jul-2009 20:23 policy.x.xx.microsoft.vcxx.crt.x86_msm.msm 55,296 12-Jul-2009 20:12 policy.x.xx.microsoft.vcxx.crt.x64_msm.msm 55,296 12-Jul-2009 20:19 policy.x.xx.microsoft.vcxx.debugcrt.i64_msm.msm 55,296 12-Jul-2009 20:23 policy.x.xx.microsoft.vcxx.debugcrt.x64_msm.msm 55,296 12-Jul-2009 20:18 policy.x.xx.microsoft.vcxx.debugcrt.x86_msm.msm 55,296 12-Jul-2009 20:12 policy.x.xx.microsoft.vcxx.debugmfc.i64_msm.msm 75,264 12-Jul-2009 22:09 policy.x.xx.microsoft.vcxx.mfc.i64_msm.msm 74,752 12-Jul-2009 22:09 policy.x.xx.microsoft.vcxx.mfcloc.i64_msm.msm 74,752 12-Jul-2009 22:09 product.xml 1,752 12-Jul-2009 22:07 product.xml 1,620 12-Jul-2009 22:09 product.xml 1,617 12-Jul-2009 22:09 ptrustm.lib 426,518 12-Jul-2009 22:09 ptrustmd.lib 433,690 12-Jul-2009 22:09 ptrustu.lib 426,518 12-Jul-2009 22:09 ptrustud.lib 433,690 12-Jul-2009 22:09 sdknames.lib 7,462 12-Jul-2009 22:09 smalheap.obj 19,259 12-Jul-2009 22:09 sstream 16,685 12-Jul-2009 22:09 stat.c 12,726 12-Jul-2009 22:09 stat64.c 11,106 12-Jul-2009 22:09 tcmap.lib 29,676 12-Jul-2009 22:09 tcmapdll.lib 32,058 12-Jul-2009 22:09 threadlocale.obj 2,647 12-Jul-2009 22:09 utility 7,230 12-Jul-2009 22:09 vcredist_IA64.exe 9.0.30729.4148 4,682,072 12-Jul-2009 19:08 vcredist_x86.exe 9.0.30729.4148 4,485,976 12-Jul-2009 19:18 vcredist_x64.exe 9.0.30729.4148 5,225,304 12-Jul-2009 14:45 vector 64,047 12-Jul-2009 22:09 wchar.h 75,918 12-Jul-2009 22:09 xhash 26,768 12-Jul-2009 22:09 xlocnum 51,313 12-Jul-2009 22:09 xstddef 2,730 12-Jul-2009 22:09 xtree 44,209 12-Jul-2009 22:09 xutility 128,834 12-Jul-2009 22:09 xutility 128,563 12-Jul-2009 22:09 yvals.h 21,527 12-Jul-2009 22:09
Article ID: 974479 - Last Review: September 8, 2009 - Revision: 2.0
APPLIES TO Microsoft Visual Studio 2008 Service Pack 1 atdownload kbbug kbexpertiseinter kbsecurity kbsurveynew KB974479
Thank you! Your feedback is used to help us improve our support content. For more assistance options, please visit the
Help and Support Home Page .