<t>COM is an ungainly solution. Memory problems like you describe come from the differences of the basic types (MS has different library implementations of several of the types, that is, different between C++, VB, and VBA). The solution is simple: 1. make a unique C++ dll for each of the types you w...