VC++ 6 - > VS2005 ATL Compile Errors
-
Hi, I have tried allowing VS2005 to convert several existing 'VC++6 compilable' projects and with each the results are the same. Tons of ATL related compile errors. None of the projects that I am trying to convert even use ATL! I am assuming this is some sort of compiler/preprocessor setting? The errors occur in: atlalloc.h atlconv.h atldebugapi.h atltrace.h I have included below, the first part of the Output display from the compile. Any help, ideas or a pointer to an answer would be greatly appreciated! Thanks, Doug
------ Build started: Project: TPC, Configuration: Debug Win32 ------
Compiling...
StdAfx.cpp
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
d:\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2065: 'DWORD_PTR' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2143: syntax error : missing ';' before 'GetWindowThreadProcessId'
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(80) : error C2065: 'LLONG_MIN' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(80) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(81) : error C2065: 'LLONG_MAX' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(81) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(89) : error C2065: 'ULLONG_MAX' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(89) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(603) : error C3861: '_resetstkoflw': identifier not found
d:\microsoft visual studio 8\vc\atlmfc\include\atlconv.h(92) : error C2061: syntax error : identifier 'LONG_PTR'
d:\microsoft visual studio 8\vc\atlmfc\include\atlconv.h(92) : error C2146: syntax error : missing '(' before identifier 'LONG_PTR'
d:\micro -
Hi, I have tried allowing VS2005 to convert several existing 'VC++6 compilable' projects and with each the results are the same. Tons of ATL related compile errors. None of the projects that I am trying to convert even use ATL! I am assuming this is some sort of compiler/preprocessor setting? The errors occur in: atlalloc.h atlconv.h atldebugapi.h atltrace.h I have included below, the first part of the Output display from the compile. Any help, ideas or a pointer to an answer would be greatly appreciated! Thanks, Doug
------ Build started: Project: TPC, Configuration: Debug Win32 ------
Compiling...
StdAfx.cpp
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
d:\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2065: 'DWORD_PTR' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\afxv_w32.h(228) : error C2143: syntax error : missing ';' before 'GetWindowThreadProcessId'
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(80) : error C2065: 'LLONG_MIN' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(80) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(81) : error C2065: 'LLONG_MAX' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(81) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(89) : error C2065: 'ULLONG_MAX' : undeclared identifier
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(89) : error C2057: expected constant expression
d:\microsoft visual studio 8\vc\atlmfc\include\atlalloc.h(603) : error C3861: '_resetstkoflw': identifier not found
d:\microsoft visual studio 8\vc\atlmfc\include\atlconv.h(92) : error C2061: syntax error : identifier 'LONG_PTR'
d:\microsoft visual studio 8\vc\atlmfc\include\atlconv.h(92) : error C2146: syntax error : missing '(' before identifier 'LONG_PTR'
d:\microA few solutions to the problem were found in this thread. Regards, --Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript