Hi. I am trying to compile a project and the compiler returns the following errors:
------ Build started: Project: Server, Configuration: Debug Win32 ------
Compiling...
MyServer.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3242) : error C2065: '_Module' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3242) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3244) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3366) : error C2228: left of '.CreateInstance' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3373) : error C2228: left of '.Lock' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3375) : error C2228: left of '.Unlock' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3641) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3658) : error C2228: left of '.AddTermFunc' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlcom.h(3667) : error C2228: left of '.m_csTypeInfoHolder' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlwin.h(155) : error C2228: left of '.GetModuleInstance' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlwin.h(168) : error C2228: left of '.GetModuleInstance' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlwin.h(1753) : error C2065: 'i' : undeclared identifier
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlwin.h(2979) : error C2228: left of '.GetModuleInstance' must have class/struct/union
type is ''unknown-type''
C:\Program Files\Microsoft Visual Studio 8\VC\include\atlwin.h(3058) : error C2228: left of '.GetModuleInstance' must have class/struct/union
type is ''unknown-type''
d:\users\tyrone\documents\visual studio 2005\projects\server\server\MyIncludes.h(12) : fatal error C1083: Cannot open include file: 'atltypes.h': No such file or directory
Build log was saved at "file://d:\Users\Tyrone\Documents\Visual Studio 2005\Projects\Server\Server\Debug\BuildLog.htm"
Server - 15 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The atlcom.h file came from the Microsoft Platform SDK. Is there some fix for this that i need to download

atlcom.h errors
Tryst
Nick Hanson
UltimateSniper
Hi,
how did you setup the project If you had used the ATL project wizard, everything should have been setup correctly.
--
SvenC
sarvesh m
So you guess you are using VC++ Express All other versions should include ATL.
I am not sure if ATL projects are supported on VC++ Express. Try asking your question in the Express forums.
--
SvenC
Pinguino Girl
Try this:
#include
<atlbase.h>#include <atlcom.h>