J2KCompressionControl example for C++ 4.0 and later

   // save a lossless file
   m_LEAD1.SetJ2KCompressionControl(J2K_COMP_LOSSLESS);
   m_LEAD1.Save("c:\\temp\\lossless.j2k", FILE_J2K, 0, 0, SAVE_OVERWRITE);