VisualC.html
changeset 7229 2636ad0a52e4
parent 2819 222aa027e650
child 7314 b0726d41aa2e
     1.1 --- a/VisualC.html	Sun May 26 12:43:03 2013 -0700
     1.2 +++ b/VisualC.html	Sun May 26 13:06:54 2013 -0700
     1.3 @@ -4,25 +4,20 @@
     1.4  	</HEAD>
     1.5  	<BODY>
     1.6  		<H1>
     1.7 -			Using SDL with Microsoft Visual C++ 5,6&nbsp;and 7
     1.8 +			Using SDL with Microsoft Visual C++
     1.9  		</H1>
    1.10  		<H3>
    1.11  			by <A HREF="mailto:snowlion@sprynet.com">Lion Kimbro </A>and additions by <A HREF="mailto:james@conceptofzero.net">
    1.12  				James Turk</A>
    1.13  		</H3>
    1.14  		<p>
    1.15 -			You can either use the precompiled libraries from <A HREF="http://www.libsdl.org/download.php">
    1.16 -				the SDL Download web site </A>, or you can build SDL yourself.
    1.17 +			You can either use the precompiled libraries from <A HREF="http://www.libsdl.org/download.php"> the SDL Download web site </A>, or you can build SDL yourself.
    1.18  		</p>
    1.19  		<H3>
    1.20  			Building SDL
    1.21  		</H3>
    1.22  		<P>
    1.23 -			Go into the VisualC directory and double-click on the VC++ file "<CODE>SDL.dsw</CODE>" <STRONG><FONT color="#009900">("<CODE>SDL.sln</CODE>")</FONT></STRONG>. This should open up the IDE.
    1.24 -		</P>
    1.25 -		<P>
    1.26 -			You may be prompted at this point to upgrade the workspace, should you be using 
    1.27 -			a more recent version of Visual C++. If so, allow the workspace to be upgraded.
    1.28 +			Go into the VisualC directory and double-click on the Visual Studio solution for your version of Visual Studio, e.g. <CODE>SDL_VS2008.sln</CODE> This should open up the IDE.
    1.29  		</P>
    1.30  		<P>
    1.31  			Build the <CODE>.dll</CODE> and <CODE>.lib</CODE> files.
    1.32 @@ -32,31 +27,21 @@
    1.33  			the Workspace panel in the FileView tab), and selecting "Build".
    1.34  		</P>
    1.35  		<P>
    1.36 -			If you get an error about SDL_config.h being missing, you should
    1.37 -			copy include/SDL_config.h.default to include/SDL_config.h and try again.
    1.38 -		</P>
    1.39 -		<P>
    1.40  			You may get a few warnings, but you should not get any errors. You do have to 
    1.41 -			have at least the DirectX 5 SDK installed, however. The latest 
    1.42 -			version of DirectX can be downloaded or purchased on a cheap CD (my 
    1.43 -			recommendation) from <A HREF="http://www.microsoft.com">Microsoft </A>.
    1.44 +			have at least the DirectX 9 SDK installed, however. The latest 
    1.45 +			version of DirectX can be downloaded from <A HREF="http://www.microsoft.com">Microsoft</A>.
    1.46  		</P>
    1.47  		<P>
    1.48  			Later, we will refer to the following .lib and .dll files that have just been 
    1.49  			generated:
    1.50  		</P>
    1.51  		<ul>
    1.52 -    <li> SDL.dll</li>
    1.53 -    <li> SDL.lib</li>
    1.54 -    <li> SDLmain.lib</li>
    1.55 +    <li> SDL2.dll</li>
    1.56 +    <li> SDL2.lib</li>
    1.57 +    <li> SDL2main.lib</li>
    1.58      </ul>
    1.59  		<P>
    1.60 -			Search for these using the Windows Find (Windows-F) utility, if you don't 
    1.61 -			already know where they should be. For those of you with a clue, look inside 
    1.62 -			the Debug or Release directories of the subdirectories of the Project folder. 
    1.63 -			(It might be easier to just use Windows Find if this sounds confusing. And 
    1.64 -			don't worry about needing a clue; we all need visits from the clue fairy 
    1.65 -			frequently.)
    1.66 +			Search for these using the Windows Find (Windows-F) utility inside the VisualC directory.
    1.67  		</P>
    1.68  		<H3>
    1.69  			Creating a Project with SDL
    1.70 @@ -96,15 +81,15 @@
    1.71  				Copy the following files into your Project directory:
    1.72  			</P>
    1.73  			<ul>
    1.74 -     <li> SDL.dll</li>
    1.75 +     <li> SDL2.dll</li>
    1.76       </ul>
    1.77  			<P>
    1.78  				Add the following files to your project (It is not necessary to copy them to 
    1.79  				your project directory):
    1.80  			</P>
    1.81  			<ul>
    1.82 -     <li> SDL.lib </li>
    1.83 -     <li> SDLmain.lib</li>
    1.84 +     <li> SDL2.lib </li>
    1.85 +     <li> SDL2main.lib</li>
    1.86       </ul>
    1.87  			<P>
    1.88  				(To add them to your project, right click on your project, and select "Add 
    1.89 @@ -122,7 +107,7 @@
    1.90  			Now create the basic body of your project. The body of your program should take 
    1.91  			the following form: <CODE>
    1.92  				<PRE>
    1.93 -#include "SDL.h"
    1.94 +#include "SDL2.h"
    1.95  
    1.96  int main( int argc, char* argv[] )
    1.97  {