SaveICCProfile2 Example for Visual C++ 5.0 and later
ILEADRasterIO *pRasterIO = NULL;
VARIANT Data;
int nRet;
long uBound;
CoCreateInstance(CLSID_LEADRasterIO,NULL, CLSCTX_ALL, IID_ILEADRasterIO,(void**)&pRasterIO);
VariantInit(&Data);
nRet = pRasterIO->LoadICCProfile2 (TEXT("c:\\dst_rgb_image.tif"), &Data, 1);
nRet = pRasterIO->SaveICCProfile2 (TEXT("c:\\image.tif "), &Data, 1);
VariantClear(&Data);
pRasterIO->Release();