how.txt
资源名称:pingbao.rar [点击查看]
上传用户:kaiyuangj
上传日期:2022-01-01
资源大小:35k
文件大小:1k
源码类别:
屏幕保护
开发平台:
Visual C++
- -New empty Win32 Application project.
- -Add neccesary *.cpp file to project.
- -Add neccesary *.h file to project
- (eg. myGLUI.h, and change file Preprocesser)
- -Add opengl32.lib, glu32.lib, scrnsave.lib in project settings.
- -Change the name of the output exe to Lesson.scr
- for Debug and Release builds.
- -Add *.def file to the project.
- -Change the Name in *.def file to the output fie name
- -Add *.rc file
- -Add the bitmap to resource
- -Add #include <scrnsave.h> to *.cpp
- -Add #include "resource.h"
- -Add *.h file in the header of *.cpp source file.
- -Add the uTimer, DMsaved global variables
- -Declare the function prototype.
- (eg. void LoadGLTextures();)
- -Remove WinMain declaration and definition
- -Remove any fullscreen logic
- -Change KillGLWindow logic
- -Change CreateGLWindow logic
- -Remove WndProc
- -Add ScreenSaverProc
- -Add SetTimer call
- -Add ScreenSaverConfigureDialog
- -Add RegisterDialogClasses
- -Add ImageLoadFromResource to load bitmap from resource
- -Change LoadGLTextures logic
- -Remove ProcessKeys