From 55fa4c00291a6662bf24214a611f569daed104f7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 26 May 2013 13:06:54 -0700 Subject: [PATCH] Updated VisualC.html for SDL 2.0 --- VisualC.html | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/VisualC.html b/VisualC.html index fdaeecd32..a481936a3 100644 --- a/VisualC.html +++ b/VisualC.html @@ -4,25 +4,20 @@

- Using SDL with Microsoft Visual C++ 5,6 and 7 + Using SDL with Microsoft Visual C++

by Lion Kimbro and additions by James Turk

- You can either use the precompiled libraries from - the SDL Download web site , or you can build SDL yourself. + You can either use the precompiled libraries from the SDL Download web site , or you can build SDL yourself.

Building SDL

- Go into the VisualC directory and double-click on the VC++ file "SDL.dsw" ("SDL.sln"). This should open up the IDE. -

-

- You may be prompted at this point to upgrade the workspace, should you be using - a more recent version of Visual C++. If so, allow the workspace to be upgraded. + Go into the VisualC directory and double-click on the Visual Studio solution for your version of Visual Studio, e.g. SDL_VS2008.sln This should open up the IDE.

Build the .dll and .lib files. @@ -31,32 +26,22 @@

This is done by right clicking on each project in turn (Projects are listed in the Workspace panel in the FileView tab), and selecting "Build".

-

- If you get an error about SDL_config.h being missing, you should - copy include/SDL_config.h.default to include/SDL_config.h and try again. -

You may get a few warnings, but you should not get any errors. You do have to - have at least the DirectX 5 SDK installed, however. The latest - version of DirectX can be downloaded or purchased on a cheap CD (my - recommendation) from Microsoft . + have at least the DirectX 9 SDK installed, however. The latest + version of DirectX can be downloaded from Microsoft.

Later, we will refer to the following .lib and .dll files that have just been generated:

- Search for these using the Windows Find (Windows-F) utility, if you don't - already know where they should be. For those of you with a clue, look inside - the Debug or Release directories of the subdirectories of the Project folder. - (It might be easier to just use Windows Find if this sounds confusing. And - don't worry about needing a clue; we all need visits from the clue fairy - frequently.) + Search for these using the Windows Find (Windows-F) utility inside the VisualC directory.

Creating a Project with SDL @@ -96,15 +81,15 @@

Copy the following files into your Project directory:

Add the following files to your project (It is not necessary to copy them to your project directory):

(To add them to your project, right click on your project, and select "Add @@ -122,7 +107,7 @@

Now create the basic body of your project. The body of your program should take the following form:
-#include "SDL.h"
+#include "SDL2.h"
 
 int main( int argc, char* argv[] )
 {