Microsoft DirectX 9.0 |
The DirectShow base classes are recommended for implementing DirectShow filters. To build with the base classes, perform the following steps, in addition those listed in Setting Up the Build Environment:
LIBRARY MYFILTER.DLL
EXPORTS
DllMain PRIVATE
DllGetClassObject PRIVATE
DllCanUnloadNow PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
Debug Build | Strmbasd.lib, Msvcrtd.lib, Winmm.lib |
Retail Build | Strmbase.lib, Msvcrt.lib, Winmm.lib |
extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
BOOL APIENTRY DllMain(HANDLE hModule, DWORD dwReason, LPVOID lpReserved)
{
return DllEntryPoint((HINSTANCE)(hModule), dwReason, lpReserved);
}
Previous Versions
For versions of the base class library before DirectShow 9.0, you must also do the following:
This step is not required for the version of the base class library that is available in DirectShow 9.0 and later.
See Also