DispatchValue example for C++ 5.0 and later

   ILEADRasterVariant * pltRasVar=NULL;
   ILEADRaster * pltRaster=NULL;

   pltRasVar->Type = VALUE_DISPATCH;
   pltRasVar->DispatchValue = pltRaster;