vType example for C++ 5 and later

ILEADRasterVariant * pltRasVar=NULL;
pltRasVar->PutEnableMethodErrors(FALSE);
pltRasVar->PutvType(VALUE_SHORT);
pltRasVar->PutShortValue(5);
if (pltRasVar->GetError() == 0)
::MessageBox(NULL, TEXT("The short value is set correctly"), TEXT("Notice!"), MB_OK);