Platform SDK: DirectX

FFFileRead Sample

[Visual Basic]

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

[C++]

Description

This sample shows how to read and create effects from a file created by Force Editor.

Path

Source: (SDK root)\Samples\Multimedia\DInput\Src\FFFileRead

Executable: (SDK root)\Samples\Multimedia\DInput\Bin\FFeedFileRead.exe

Media: (SDK root)\Samples\Multimedia\DInput\Media

User's Guide

Click Read File and load a supplied .ffe file from the Media folder or one of your own files. Then click Play Effects.

Programming Notes

For each file effect enumerated, the EnumAndCreateEffectsCallback function initializes an IDirectInputEffect pointer and adds it to a linked list. The OnPlayEffects function traverses this list and plays all effects.