DoubleBuffer example for C++ 5.0 and later

ILEADRasterIO * pRasterIO = NULL;

HRESULT hr = CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);

m_RasterView.SetDoubleBuffer(TRUE);
pRasterIO->Load(m_RasterView.GetRaster(), TEXT("c:\\parrots.jpg"), 0, 0, 1);

pRasterIO->Release();