Ben Scott wrote some really nifty source code that simplifies use of the concepts in my Binary-Compatible Interfaces in C++ article. Download the source code here.