IgnoreFilters example for C++ Builder
This example shows how to ignore filters so that certain files are not loaded.
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
//First, make sure PreLoaded Filters does not
//contain CMP, and that 0 filters can be cached
pRasterIO->PreLoadFilters (3, 0, AnsiToOLESTR("BMP,FAX,TIF"));
//now, ignore cmp filter (never load cmp files)
pRasterIO->IgnoreFilters (AnsiToOLESTR("CMP"));
pRasterIO-> Release( );