WriteMetaData example for C++ 5.0 and later

   pMarker1->Load("c:\\image1.jpg",0); 
   pRasterIO->SetMarkers (pMarker1 ,0); 
   pRasterIO->WriteMetaData ("c:\\image2.tif",METADATA_ALL);