[ 에러 메세지 ]

#error: MFC does not support WINVER less than 0x0501. Please change the definition of WINVER in your project properties or precompiled header. 


[ 해결 방안 ]

StdAfx.h 파일의 WINVER 정의 값을 수정한다.

#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.

#define WINVER 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.

#define WINVER 0x0601

#endif


[ WINVER 값 참고 ]

 Windows 운영체제

 WINVER 값

  Windows XP

0x501

Windows Vista

0x600

  Windows 7

0x601

  Windows 10

 0xA00 


+ Recent posts