See if Write A Simple COM Application helps