Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG 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
159
Location
Nya House!
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