Main Page » Compiling in Windows


Revision as of 21:53, 6 October 2006
Deathstryker (Talk | contribs)

← Previous diff
Revision as of 01:38, 7 October 2006
Deathstryker (Talk | contribs)

Next diff →
Line 35: Line 35:
'''3- go the VC menu tools, then go to options, the select Projects & solutions, then select VC++ directories''' '''3- go the VC menu tools, then go to options, the select Projects & solutions, then select VC++ directories'''
-select show directories of include, click on add new line, browse to your SDK installation path and add the include folder+Add the paths to the appropriate subsection:
-show the directories of libraries, then add the SDK folder library+
 +Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
-'''4- open the scorched project file (you must download all CVS files first) and convert it to VS'''+Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
 +Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
-'''5- Choose either debug (there may be problems experienced when compiling using debug in VS 2005) or release (should be considered the default option) from the drop down at the top of the page.'''+Note: Alternatively, you can update the Visual C++ Directories by modifying the VCProjectEngine.dll.express.config file located in the \vc\vcpackages subdirectory of the Visual C++ Express install location. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" if it exists before restarting Visual C++ Express Edition.
-'''6- Right click on the scorched icon in the file viewer in the left hand side and choose properties from the pop-up menu.'''+'''4- Update the corewin_express.vsprops file.'''
 + 
 +One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and
 + 
 +Change the string that reads:
 + 
 +AdditionalDependencies="kernel32.lib" to
 + 
 +AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
 + 
 +Additionally, to subdue the deprecation warnings, you can change the VCCLCompilerTool line so that it reads:
 + <Tool Name="VCCLCompilerTool" PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"/>
 + 
 + 
 +'''5- open the scorched project file (you must download all CVS files first) and convert it to VS'''
 + 
 + 
 +'''6- Choose either debug (there may be problems experienced when compiling using debug in VS 2005) or release (should be considered the default option) from the drop down at the top of the page.'''
 + 
 + 
 +'''7- Right click on the scorched icon in the file viewer in the left hand side and choose properties from the pop-up menu.'''
Choose debuging and change the working directory to : ..\.. Choose debuging and change the working directory to : ..\..
Line 62: Line 83:
-'''7 - Build it (F7)'''+'''8 - Build it (F7)'''
 + 
 + 
 +'''9 - Run it (F5)'''
 + 
 + 
-'''8 - Run it (F5)'''+This tutorial was originally written by Brain Damage with changes and additions by Gavin and Deathstryker

Revision as of 01:38, 7 October 2006

1- Download and install MS Visual C++ 2005 from microsoft (free until november 2006, so hurry up)

Choose either 1 of those links, the one that suits more your needs


(Dial-Up)

Download web installer (recommended from Microsoft but should only be considered by dial-up users) 2.9 MB + additional download

When asked what to install, you only need to install the Graphical IDE to to merely get Scorched to compile which should be about 70MB.


(Broadband)

Download full installer CD-Rom ISO image (recommended by me but not from microsoft) 445MB

Download full installer CD-Rom IMG image (recommended by me but not from microsoft) 445MB


2- Download & install the microsoft platform SDK


(Dial-Up)

Web installer download page scroll until you reach the bottom and search for your processor architecture. (again this should only be considered by dial-up users) 1.2MB + additional download

When asked what to install, make sure to choose a custom install and select all options EXCEPT for ones having to do with Documentation, Sample Code, or any 64 bit options.


(Broadband)

Download full installer CD-Rom IMG image (again i recommend this) 409.9 MB


3- go the VC menu tools, then go to options, the select Projects & solutions, then select VC++ directories

Add the paths to the appropriate subsection:

Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin

Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include

Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

Note: Alternatively, you can update the Visual C++ Directories by modifying the VCProjectEngine.dll.express.config file located in the \vc\vcpackages subdirectory of the Visual C++ Express install location. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" if it exists before restarting Visual C++ Express Edition.


4- Update the corewin_express.vsprops file.

One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and

Change the string that reads:

AdditionalDependencies="kernel32.lib" to

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"

Additionally, to subdue the deprecation warnings, you can change the VCCLCompilerTool line so that it reads:

<Tool Name="VCCLCompilerTool" PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE"/>


5- open the scorched project file (you must download all CVS files first) and convert it to VS


6- Choose either debug (there may be problems experienced when compiling using debug in VS 2005) or release (should be considered the default option) from the drop down at the top of the page.


7- Right click on the scorched icon in the file viewer in the left hand side and choose properties from the pop-up menu.

Choose debuging and change the working directory to : ..\..

Choose Linker/input and edit the aditional dependancies.

Remove:-

dxguid.lib (This is very important. If not removed, Scorched will crash when you try to run it.)

Add (if not listed):-

User32.lib
Gdi32.lib
ole32.lib
Shell32.lib
Advapi32.lib
Comdlg32.lib


8 - Build it (F7)


9 - Run it (F5)



This tutorial was originally written by Brain Damage with changes and additions by Gavin and Deathstryker

Donate to Scorched3D Get it from CNET Download.com! 5 Stars