Platform SDK: DirectX

DDEx1 Sample

[Visual Basic]

This topic pertains only to application development in C and C++. See DirectDraw Visual Basic Samples.

[C++]

Description

DDEx1 demonstrates the tasks required to initialize and run a DirectDraw application.

Path

Source: (SDK root)\Samples\Multimedia\DDraw\Src\Ddex1

Executable: (SDK root)\Samples\Multimedia\DDraw\Bin\Ddex1.exe

User's Guide

DDEx1 requires no user input. Press the F12 key or the ESC key to quit the program.

Programming Notes

This program shows how to initialize DirectDraw and create a DirectDraw surface. It creates a back buffer and uses page flipping to alternately display the contents of the front and back buffers. Other techniques demonstrated include color fills and using GDI functions on a DirectDraw surface.