atlcom.h - ClassesAllowedInStream undefined
-
Wednesday, August 05, 2009 6:04 PMHi,
since the latest update last week, i cant compile my extenstion code.
my project is compiled and static linked to ATL,
but since the latest update there is an error on atlcom.h
ClassesAllowedInStream is not defined.
what should i do?
Answers
-
Thursday, August 06, 2009 6:27 PM
I suggest you uninstall Windows SDK 6 and then reinstall the security update after you install the Windows SDK 6.1.
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- Marked As Answer by Wesley Yao Wednesday, August 12, 2009 2:25 AM
All Replies
-
Wednesday, August 05, 2009 7:51 PMWhich version of Visual Studio do you have?
Do you have Windows SDK installed? If so, which version?
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP -
Thursday, August 06, 2009 12:02 PMI had the same problem unfortunately installer did not update atlcomcli.h file
-
Thursday, August 06, 2009 5:14 PM
i have a very old windows sdk 6.
i'll update and hope it will fix the problem -
Thursday, August 06, 2009 6:27 PM
I suggest you uninstall Windows SDK 6 and then reinstall the security update after you install the Windows SDK 6.1.
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- Marked As Answer by Wesley Yao Wednesday, August 12, 2009 2:25 AM
-
Monday, August 10, 2009 6:56 AMHi Sheng,I have tried your way and the files atlcom.h and atlcomcli.h are updated, but still no ClassesAllowedInStream defined in the atlcomcli.h.The followings are attributes of the updated atlcomcli.hsize: 67,956 bytesdate: 2009/7/11, 19:40:46 (created and modified)Any idea?
-
Monday, August 10, 2009 8:11 AMForgot to say, my system is VISTA + VS2005 + SDK6.1BTW, my another machine, XP + VS2008 + SDK6.1 is also updated and everything is OK.
-
Tuesday, August 11, 2009 4:05 PM
Hi,I'm lost in the same mystery.The following lines in atlcom.h gives me C2146 syntax error:#if !defined(_ATL_DLL_IMPL) && !defined(_ATL_DLL) ClassesAllowedInStream rgclsidAllowed; DWORD cclsidAllowed; #endif
I cannot recall installing anything that could have changed atlcom.h (only installed Windows updates lately). Yet my atlcom.h differs from the one of my collegues, running the same projects and tools. And unlike me, theirs successfully build.I run a 64-bit Vista SP1. We use Visual C++ 2008 and we got the project configuration property Use of ATL set to Not Using ATL. My atlcom.h is from 2009-07-10, half past ten a friday night! (I'm positive I was playing Dungeons & Dragons at that time.)I see no option at the moment but to reinstall Visual Studio. :PJOG -
Wednesday, August 12, 2009 8:32 AMAfter disabling vista UAC and reinstalling the security update (KB971090). The file atlcomcli.h is really updated. Problem gone.Hope it helps for other people who are facing same problem:-)
-
Wednesday, August 12, 2009 2:47 PMI had to reinstall Visual Studio to resolve this error. My trial and error approach, step by step, follows here:I uninstalled and reinstalled the Windows SDK from here:http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=enI ran the Visual Studio 2008 Service Pack 1 ATL Security Update:http://www.microsoft.com/downloads/details.aspx?familyid=294DE390-3C94-49FB-A014-9A38580E64CB&displaylang=enBut the problem remained. None of these actions changed the atlcom.h file and the compiler did still not recognize ClassesAllowedInStream.So, last resort: Reinstalling VS2008. I run the Microsoft Visual Studio 2008 Setup from the CD to uninstall, but it fails with the informative message: "A problem has been encountered while loading the setup components. Canceling setup."Fortunally, the Automated uninstall tool works, found at:http://msdn.microsoft.com/en-us/vstudio/bb968856.aspxInstalling Visual Studio from the CD again, and running Windows Updates.It BUILDS! Success! ^_^ Joy!The atlcom.h file is now dated 5 august 2007, 06:51:44. Maybe something went wrong in the update that dissyncrhonized C-files in the VC/atlmfc directory, what do I know...JOG
-
Thursday, August 13, 2009 6:16 AM
you just got the old version back,
you will probably get the update again next time or even worse,
you will not get the update and have your application built with the old unsecure version of ATL. -
Thursday, August 13, 2009 8:34 AMWell observed, Itai, I mixed up the dates as well. The atlcom.h file is really still dated 10 july 2009. Idk if that really is the one of the update. And atlcomcli.h is 11 july 2009.I already ran the updates though, and Windows Update center says that my Windows is up to date. So it should be the proper version, and something else was wrong last time. No?How did yours resolve, Itai?
-
Thursday, August 13, 2009 4:15 PMi didnt yet, i just use the old files for now, untill i'll find the time to update the windows sdk
-
Monday, August 31, 2009 9:28 AM
Hi,
I'm lost in the same mystery.The following lines in atlcom.h gives me C2146 syntax error:#if !defined(_ATL_DLL_IMPL) && !defined(_ATL_DLL) ClassesAllowedInStream rgclsidAllowed; DWORD cclsidAllowed; #endif
I cannot recall installing anything that could have changed atlcom.h (only installed Windows updates lately). Yet my atlcom.h differs from the one of my collegues, running the same projects and tools. And unlike me, theirs successfully build.I run a 64-bit Vista SP1. We use Visual C++ 2008 and we got the project configuration property Use of ATL set to Not Using ATL. My atlcom.h is from 2009-07-10, half past ten a friday night! (I'm positive I was playing Dungeons & Dragons at that time.)I see no option at the moment but to reinstall Visual Studio. :PJOG
Same problem to me.
Windows 7 + VS 2008 anything completely upgraded. atlcom.h is from 2009-07-10.
Please help!
Alessio -
Monday, August 31, 2009 10:37 AMAlessio,Try to Reinstall Visuall Studio, and then run Windows Update.JOG
-
Friday, September 11, 2009 9:39 PM
When I ran into this problem today, I followed some suggestions in this thread and then applied the following:
Security Update for Microsoft Visual Studio 2005 Service Pack 1 ATL for Smart Devices (KB973673)
Security Update for Microsoft Visual Studio 2008 Service Pack 1 ATL for Smart Devices (KB973675)
Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)The problem occured with Visual Studio 2008 SP1 and applying the above three Updates solved it.
No restart required, either.
Hope this helps!- Proposed As Answer by ran.halprin Thursday, March 04, 2010 10:06 AM
-
Friday, September 25, 2009 8:17 PM
All,
I recently installed VS2008 with SP1 on new Win installation. The project conpiles fine on a different machine with a similar config (only difference was that VS2005 existed there).
All errors are coming from AtlCom.h header.
There seems to be something wrong with this file version but a missing update to atlcom.h is out of question as the machine is new.
Thanks- Edited by Manav Sharma Friday, September 25, 2009 10:04 PM
-
Friday, September 25, 2009 10:03 PM
All,
The last post by SlyW helped me fix the issue.Thanks
-
Sunday, September 27, 2009 2:56 PMSlyW's solution did it for me.
I now have a "little" issue with odbcss.h. If Unicode is not defined, then it tries to typedef char as DBCHAR.
I will keep digging to see what I can find.
But big thanks for the posting. I worked for most of yesterday reinstalling XP/VS2008/SQLExpress2008/patches, etc... -
Tuesday, June 08, 2010 10:48 PM
It worked for me. I am using VS2008 SP1 on Win 7. After applying following patch it resolved the issue,
Security Update for Microsoft Visual Studio 2008 Service Pack 1 ATL for Smart Devices (KB973675)
Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)Thanks SlyW
- Proposed As Answer by RS071 Tuesday, June 08, 2010 10:50 PM
-
Wednesday, July 21, 2010 12:47 AM
I had installed VS2008 SP1 on an XP box and was getting this same issue.
Applying following patches resolved this issue for me too,
Security Update for Microsoft Visual Studio 2008 Service Pack 1 ATL for Smart Devices (KB973675)
Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)Thanks SlyW.
-
Wednesday, September 15, 2010 6:22 AMI had installed VS2008 SP1 on an Windows 7 box and was getting this same issue.
Applying following patches resolved this issue for me too,
Security Update for Microsoft Visual Studio 2008 Service Pack 1 ATL for Smart Devices (KB973675)
Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)
Thanks SlyW.
may the force be with you -
Monday, September 27, 2010 9:37 PM
I'm using VS 2005, and I had repeatedly tried reinstalling VS80sp1-KB971090-X86-INTL, I even tried turning off UAC, restarting computer and compiling.
Then I installed
Security Update for Microsoft Visual Studio 2005 Service Pack 1 ATL for Smart Devices (KB973673)
tried compiling, but still no luck.
The I cleaned the project I had the problem with, compiled and I was ok.
So I can't say whether just turning off UAC and installing KB971090 would have worked if I had cleaned the project at that point...
-
Thursday, February 24, 2011 11:39 PM
New 64 bit W7 machine, same problem after installing SP1.
This was the solution for me:
Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)
It failed installing first time so I tried again - and after that all is working (well, for now at least)
Up and running!
- Proposed As Answer by Kjellemann Thursday, February 24, 2011 11:40 PM
-
Tuesday, June 28, 2011 1:57 AMthanks, is useful to me.i reinstall my computer
-
Friday, January 06, 2012 9:45 AM
How to uninstall windows SDK? as the Windows 6.0 is installed in my machine along with Visual Studio 2008, I could not find an option to remove it.
I have following versions of Visual Studio installed in my machine.
- Visual Studio 2005
- Visual Studio 2008
- Visual Studio 2010
The issue occurs with VS 2005. uninstalling certain SDKs may affect the other installations.
--@sarat -
Friday, January 06, 2012 10:50 AMAdd $(VCInstallDir)PlatformSDK\include in include file. That may essentially solve the problem
-Sarath. My blog - http://codereflect.com/

