Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CImageList serialization under XP and NT

CImageList serialization under XP and NT

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++jsonquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Heywood
    wrote on last edited by
    #1

    I've recently updated one of my MFC applications to use the serialization functions available in CImageList (CImageList::Read and CImageList::Write). The problem I'm having is, my application must run under both WinNT and WinXP. When a file is saved under WinXP, the file is no longer readable under NT. I get an unexpected file format error, and the way the CImageLists are being saved seem to be the culprit. Does anyone know what I can do to make the Image list serialization functions work the same under both operating systems?

    M 1 Reply Last reply
    0
    • H Heywood

      I've recently updated one of my MFC applications to use the serialization functions available in CImageList (CImageList::Read and CImageList::Write). The problem I'm having is, my application must run under both WinNT and WinXP. When a file is saved under WinXP, the file is no longer readable under NT. I get an unexpected file format error, and the way the CImageLists are being saved seem to be the culprit. Does anyone know what I can do to make the Image list serialization functions work the same under both operating systems?

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      When you save on XP you're getting a v6 format file, which is not readable by previous OSes. Use ImageList_WriteEx() and pass the ILP_DOWNLEVEL flag to save in a format that previous OSes can read. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- "die" ahhhh! "diet" AAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups