# Welcome to the DirectAnimation C++ Samples

All DirectAnimation C++ samples in this SDK were created and tested with Microsoft Visual C++ 5.0. The source code for these samples is located in the samples\da\c++\showcase directory.

There are two ways to use DirectAnimation in C++:

You can create applications that take a DirectDraw primary surface and pass the DAViewer object to it for rendering. For instructions on how to build this type of sample click here.

- The Donut sample takes the DirectDraw donut sample from the DirectX SDK and adds two animating text strings to it using DirectAnimation. It shows how DirectAnimation can be added to an existing DirectDraw application.
- The Union sample demonstrates a cluster of geometries with color and transform behaviors, and a simple looping background sound.

You can also create applications that derive a container from the CControlHost class to host the DirectAnimation Windowed Control. For instructions on how to build this type of sample click here.

- The Pick3 sample demonstrates animated and interactive 3-D .x models.
- The Draggable Image sample demonstrates how to implement a draggable image using the untilNotifier() method.
- The Draggable Geometry sample demonstrates how to implement a draggable geometry using the untilNotifier() method.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.
Best viewed in 16-bit color with Internet Explorer 4.x.
Email contact for this page is dxmbeta@microsoft.com.