Microsoft DirectX 8.0 |
This article describes how to build Microsoft® DirectShow® applications and filters. You can build a project from the command line, or from within the Microsoft® Visual Studio® environment that comes with Microsoft® Visual C++®:
All DirectShow applications use the header file shown in the following table.
Header File | Required For |
---|---|
Dshow.h | All DirectShow applications. |
Some DirectShow interfaces require additional header files. These requirements are noted in the interface reference.
DirectShow uses the library files shown in the following table.
Library File | Description |
---|---|
Strmiids.lib | Exports class identifiers (CLSIDs) and interface identifiers (IIDs). All DirectShow applications require this library. |
Quartz.lib | Exports the AMGetErrorText function. If you do not call this function, this library is not required. |
Strmbase.lib | Required only if you use the DirectShow base classes. |
In your build environment, the SDK Include and Lib directories should be the first directories in the search path. This ensures that you are using the most recent versions of these files.
If you build a DirectShow filter, you must perform the following steps in addition to the ones described in the previous section:
LIBRARY FILTER.DLL DESCRIPTION 'Description of my filter' PROTMODE EXPORTS DllGetClassObject DllCanUnloadNow DllRegisterServer DllUnregisterServer