CopyMarkers example for C++ 5.0 and later
pMarker1->Load("c:\\ image1.jpg",0);
pMarker2->CreateMarkers();
pRasterIO->CopyMarkers (pMarker2,pMarker1);
for(int i=0;i<pMarker2->GetCount ();++i)
{
pMarker2->GetMarker (i);
wsprintf(str, TEXT("%d %d"), pMarker2->GetType (),
pMarker2->GetElementCount ());
MessageBox(NULL,str, TEXT("Print"),0);
}