Click here to Skip to main content
13,259,847 members (46,478 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 25 Jun 2012

Binary Code Compatibility

, 25 Jun 2012
Rate this:
Please Sign up or sign in to vote.
This article explains how you can identify any compatability issues for a legacy code written in VB, or any other language that produces TLB (Type Library) files for its interfaces.


This code allows users to compare two files using MD5.


Over the past week, I was trying to find a way to identify whether the binary compatibility of a COM binary has changed or not without referring back to the developer and asking him, since this process will be done by the release team.

And after some thorough investigation, it came to me! These COMs binaries produce Type Libraries (TLB), and the TLB describes the interfaces of the COM. So any change on the publish methods of the binary classes will change the TLB file for sure.

Based on this conclusion, I built a simple desktop application that compares any two files by getting the MD5 of each file, and if the MD5 is identical then the files are identical, otherwise they are not. And I used this file comparer to identify compatibility changes better binaries.

Using the code

To use the code, select the location of the old file to compare, select the location of the second file to compare, and click Compare, and you will get the compare result.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171114.1 | Last Updated 25 Jun 2012
Article Copyright 2012 by wesamq
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid