The Chameleon Pathnames
The title might be as well “When the pathname is not what it has to be”. The experience of developing plugins for Adobe Acrobat/Reader reserved… Read More »The Chameleon Pathnames
The title might be as well “When the pathname is not what it has to be”. The experience of developing plugins for Adobe Acrobat/Reader reserved… Read More »The Chameleon Pathnames
This short tutorial shows how easy it’s to generate reports in HTML pages using Microsoft XML DOM API together XML and XSLT. XML (Extensible Markup… Read More »HTML files generation using XML and XSLT with Microsoft XML DOM API
Most existing applications operate with data that must be stored and loaded in different times and different locations. The data is stored in text or binary files with a well defined format.
The Problem
Initially, in the first version 1.0, an application operates with data structures that can be stored and loaded. But, next version (2.0) these data structures suffers changes. Some structure’s attributes are added and other could be removed. These things change files format and structure when a new file version is saved.
Question: What happens when you are using an application version 2.0 and you are trying to load old files format (version 1.0)?
Answer: Most cases should cause incompatibility troubles between the current new application and files in old format. This could throw exceptions and the application could have undefined behavior.
That’s why the application must be written in order to be able to open both file versions.
Solution
In order to solve the compatibility issue exist many solutions, more or less professional. The recommended solution is the serialization.
[…]