Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DDraw and Audio

Windows Mobile 6.5

This code sample is named Donuts2. It is a simple game that demonstrates how to combine DirectDraw and Waveform Audio. Although it demonstrates other DirectX components, it is primarily intended to show how to animate multiple sprites.

To run the code sample
  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution file is copied to the following folder:

    C:\Program Files\Windows Mobile 6.5.3 DTK\Samples\PocketPC\CPP\win32\directx\DDraw\Donuts2

    Microsoft Visual Studio launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

  • Input is from the keyboard. No other input device is supported.
  • The commands are listed on the opening screen. All numbers must be entered from the numeric keypad.

Button Action


Turn left


Turn right


Accelerate forward


Accelerate backward

Application Button 1


Application Button 2


Action Fire

Start game

Talk button

Turn audio on/off

End button


Volume Up

Toggle trailing after-image effect on/off

Volume Down

Toggle frame-rate display on/off

Switch Description


Use software emulation, not hardware acceleration.


Test mode, needs no input.


Stress mode, never stop if you can help it.


Turn sound off/on.

It is assumed that your mobile device supports DirectDraw.

This code sample uses less than 1 MB of video RAM.

Pocket PC SDK: Windows Mobile Professional SDK

Development Environment: Visual Studio 2005 or 2008.

ActiveSync: Version 4.5.

Community Additions

© 2015 Microsoft