CImageList serialization under XP and NT
-
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?
-
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?
When you save on XP you're getting a v6 format file, which is not readable by previous OSes. Use
ImageList_WriteEx()
and pass theILP_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!!!!!!!!!