This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11008|Reply: 1

[windows] [SDL Programming] VC environment construction under windosXP

[Copy link]
Posted on 6/1/2017 8:49:54 AM | | |
After the class in Beijing, the lecturer pointed out that SDL (simple DirectMedia Layer) is a cross-platform open source library that can also be built under windosXP.
PC:Mircrosoft Windows XP Service Pack3
Platform:Mircrosoft Visual C++ 6.0
SourceCode:SDL-devel-1.2.14-VC6.zip
Steps
    1. Unzip SDL-devel-1.2.14-VC6.zip. Copy SDL.lib SDLmain.lib to the lib folder of the VC6.0 installation directory.
    2. Copy the SDL.dll to the WINDOWS/SYSTEM32 directory of the system disk (if you want to transfer the generated SDL application to another machine without SDL environment, please copy the SDL.dll together).
    3. Create a new SDL directory under the include folder of the VC6.0 installation directory, and copy SDL-devel-1.2.14-VC6.zip the files in the unzipped include to this SDL directory.
    4. Open VC6 and create a new project->win32 application. Open the setting under the project directory, select C/C++, select Code Generation in Category, and use run-time library to use Multithread DLL.
    5. Continue to select Link in the above setting, select input in Category, and fill in SDL.lib SDLmain.lib in Object/library modules
    6. Create a new cpp in the VC project, add it to the project, compile, and run.
Related links
1.SDL http://www.libsdl.org/download-1.2.php
Test code





Previous:How to take the first step towards becoming an architect
Next:.net/c# log4net logs cannot be written to a file
Posted on 6/1/2017 9:25:22 AM |
I typeset it for you
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com