i installed vs2010 after drive crash, prior had vs2005 , fine.
now on compiling c++ app fine seeing couple of errors cannot figure out.
error 1 error c1189: #error : file requires _win32_winnt #defined @ least 0x0403. value 0x0501 or higher recommended. c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atlcore.h 35 1 bioxgina
#ifndef __atlcore_h__ #define __atlcore_h__ #pragma once #ifdef _atl_all_warnings #pragma warning( push ) #endif #pragma warning(disable: 4786) // identifier truncated in debug information #pragma warning(disable: 4127) // constant expression #include <atldef.h> #include <windows.h> #include <ole2.h> #include <limits.h> #include <tchar.h> #include <mbstring.h> #include <atlchecked.h> #include <atlsimpcoll.h> 34. #if _win32_winnt < 0x0403 35. #error file requires _win32_winnt #defined @ least 0x0403. value 0x0501 or higher recommended. 36. #endif #pragma pack(push,_atl_packing) namespace atl { ///////////////////////////////////////////////////////////////////////////// // verify null-terminated string points valid memory inline bool atlisvalidstring( _in_z_count_(nmaxlength) lpcwstr psz, _in_ size_t nmaxlength = int_max) { (nmaxlength); return (psz != null); }
if comment out above lines,
error c3861 identifier not found on line 111 below.
i presume i'm getting because commented above lines ?
hresult init() throw() { hresult hres = s_ok; 111. if (!initializecriticalsectionandspincount(&m_sec, 0)) { hres = hresult_from_win32(getlasterror()); } return hres; }
i appreciate assistance on this. don't want reinstall 2005.
this microsoft connect issue has potential solution:
edit file "stdafx.h" , change value defined _win32_winnt , winver 0x0502.
more discussion here error on msdn c++ forum: problem older vc solution.
Comments
Post a Comment