Tag: programming

  • 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 me different surprises, that made the task more challenging. One of the biggest surprises I had was the impact of the Adobe’s Cloud idea over the Acrobat’ API within Acrobat products. […]

  • HTML files generation using XML and XSLT with Microsoft XML DOM API

    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 Language) became a universal standard of encoding data in a format that is both human-readable and machine-readable. It’s widely used in business applications and even Microsoft Office uses it into […]

  • Versionable Object’s Serialization using MFC in non Document View applications

    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. Application window []