Building DirectShow Filters
To build a DirectShow filter, perform the steps listed in Building DirectShow Applications. In addition, perform the following steps:
- Use the __stdcall calling convention.
- Set the entry-point symbol to DllEntryPoint@12. (In Microsoft® Visual C++® 6.0, choose Settings from the Project menu. Click the Link tab. In the Category list, click Output. Type
DllEntryPoint@12
in the Entry-point Symbol box.)
- Use the multithreaded C run-time library.
- Include a definition (.def) file that exports the DLL functions. The following is an example of a definition file. The filter's output file is assumed to be Filter.dll.
LIBRARY FILTER.DLL
DESCRIPTION 'Description of my filter'
PROTMODE
EXPORTS
DllGetClassObject
DllCanUnloadNow
DllRegisterServer
DllUnregisterServer
See Also