Simple Configuration of SDL Environment in VC2005 - Unbelievable

by stilling2006 on 2009-09-07 22:19:36

When the teacher announced in the first class that we would only be learning knowledge related to 2D games this semester, I redefined this course as "just getting by." The same goes for the Information Security Overview on Monday—I also categorized it as "just getting by." But even when I'm just getting by, I still have principles: I still do my own homework.

I've been messing around with GL for a while now, so SDL should be a piece of cake. First, I downloaded the relevant SDL development libraries (including about 53 H files, 6 LIB files, and 14 DLL files). Then, I went into the corresponding VC2005 installation directory. In the vc/include path, I created a new folder called SDL and copied the header files into it. Similarly, I copied the LIB files into vc/lib, and then I copied all the DLL files into c:/windows/system32. With that, the environment was set up. In the future, when using it, remember to include `` or other similar files.

Below is the code for my first demo. It's self-explanatory. To this day, I haven't even looked at SDL's syntax; all the function names are self-explanatory. I just modified the code from the sample included with SDL, and it worked fine.