PreLoadFilters Example for C++ 5.0 and later

This example shows how to preload filters.

ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
                 IID_ILEADRasterIO, (void**)&pRasterIO);
//preload the BMP, PCX, FAX, and TIFF filters,
//and allow 1 filter to be cached, while always
//keeping 3 loaded.
pRasterIO->PreLoadFilters(3, 1, "BMP,PCX,FAX,TIF");
//..... load an image
pRasterIO->Release();