Microsoft DirectX 8.1 (C++)

Importing the Guide Store Type Library (C++)

This topic applies to Windows XP Home Edition and Windows XP Professional only.

There is no C++ header file for the Guide Store. To compile a Guide Store application, you must either import the type library or generate the necessary files by using MIDL and include these in your project. Importing the type library is the easier method, as it automatically makes all declarations and IIDs available to the compiler.

Import the type library by inserting the following line in your source code:

#import <mstvgs.dll> no_namespace

The no_namespace attribute enables you to use the Guide Store interface names without prepending "MSTVGS::". For more information, see the topic "The #import Directive" in the Microsoft Visual C++ Help.

To obtain the IID of an interface, use __uuidof or CComPtr.