[ Nedeljko @ 07.04.2010. 12:16 ] @
U nekom starom VS-u sam uradio projekat koji prilažem. Kako da ga uvezem u novi Visual Studio 2010 Ultimate beta2? Prijavljuje mi grešku u kompajliranju, a nekada je radio bez problema.
[ Mihajlo Cvetanović @ 07.04.2010. 12:34 ] @
A šta je konkretno output kompajlera? Nemam VS2010 kod sebe.
[ Nedeljko @ 07.04.2010. 14:13 ] @
Code:
1>------ Build started: Project: Sudoku, Configuration: Debug Win32 ------
1>Build started 7.4.2010 15:12:20.
1>_PrepareForBuild:
1>  Touching "Debug\Sudoku.unsuccessfulbuild".
1>ClCompile:
1>  stdafx.cpp
1>e:\vs\vc\atlmfc\include\atlcore.h(35): fatal error C1189: #error :  This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
1>  
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.94
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[ deerbeer @ 07.04.2010. 14:18 ] @
Imas deklaraciju _WIN32_WINNT u stdafx.h fajlu.
Code:

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

Promeni ga kako ti je kompajler rekao i trebalo bi da ti radi .
[ Nedeljko @ 07.04.2010. 14:44 ] @
Prošlo je sa ovim

Code:
#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.
#endif

#ifndef _WIN32_WINNT        // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0500        // 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 0x0500 // Change this to the appropriate value to target Windows Me or later.
#endif


Međutim, imam drugi problem. Program mi radi mnogo sporije nego stara izvršna verzija. Release radi kao što je nekad radio debug. Pretpostavljam da je to zato što proverava opseg kod vector<int> klase. Nekada sam to morao da isključujem da bi release radio brže, a sada ne znam kako se to isključuje.