Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[VS2010] Fix #defined at least to 0x0403. Value 0x0501 or higher is recommended.

Experienced Elementalist
Joined
Nov 17, 2009
Messages
255
Reaction score
157
When you compile QQXY Project that convert to VS2010 project if u got some problem like this...

Code:
This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended

Find... in stdafx.h

Code:
// ศ็น๛ฤ๚ฑุะ๋สนำรฯยมะห๙ึธถจตฤฦฝฬจึฎวฐตฤฦฝฬจฃฌิ๒ะธฤฯยรๆตฤถจาๅกฃ
// ำะนุฒปอฌฦฝฬจตฤฯเำฆึตตฤื๎ะยะลฯขฃฌว๋ฒฮฟผ MSDNกฃ
#ifndef WINVER				// ิสะํสนำร Windows 95 บอ Windows NT 4 ป๒ธธ฿ฐๆฑพตฤฬุถจนฆฤกฃ
#define WINVER 0x0400		//ฮช Windows98 บอ Windows 2000 ผฐธะยฐๆฑพธฤฑไฮชสสตฑตฤึตกฃ
#endif

#ifndef _WIN32_WINNT		// ิสะํสนำร Windows NT 4 ป๒ธธ฿ฐๆฑพตฤฬุถจนฆฤกฃ
#define _WIN32_WINNT 0x0400		//ฮช Windows98 บอ Windows 2000 ผฐธะยฐๆฑพธฤฑไฮชสสตฑตฤึตกฃ
#endif						

#ifndef _WIN32_WINDOWS		// ิสะํสนำร Windows 98 ป๒ธธ฿ฐๆฑพตฤฬุถจนฆฤกฃ
#define _WIN32_WINDOWS 0x0410 //ฮช Windows Me ผฐธะยฐๆฑพธฤฑไฮชสสตฑตฤึตกฃ
#endif

#ifndef _WIN32_IE			// ิสะํสนำร IE 4.0 ป๒ธธ฿ฐๆฑพตฤฬุถจนฆฤกฃ
#define _WIN32_IE 0x0400	//ฮช IE 5.0 ผฐธะยฐๆฑพธฤฑไฮชสสตฑตฤึตกฃ
#endif

Change it like this...
Code:
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER                // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501        // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif                        

#ifndef _WIN32_WINDOWS        // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0501 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE            // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0500    // Change this to the appropriate value to target IE 5.0 or later.
#endif

Compile with VS2010...

Code:
1>  Generating Code...
1>  UpdateGen.vcxproj -> C:\Documents and Settings\Paradise\Desktop\QQ SOURCES\XYcode\UpdateGen\..\UpdateGen.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Goodluck. ;")
 
Last edited:
Back
Top