LoadMarkers example for C++ 4.0 and later

// Add LEAD Main ActiveX Control into your form then assign a variable to it called "m_Lead".
m_Lead.Load(TEXT("c:\\image1.jpg"), 0, 0, 1);
m_Lead.SetMarkers(m_Lead.LoadMarkers(TEXT("c:\\image1.jpg"), 0), 0);
m_Lead.Save(TEXT("c:\\image2.jpg"), FILE_EXIF_JPEG, 24, 2, 0);