I am developing an app in VB6 that requires a function which cannot be done in VB (not too surprising). I am not a C programmer but do have verified code for the function. My problem is making a dll that I can register and use as a VB6 reference. I naively purchased the .NET upgrade which includes VB, C++, and all the rest. What I can't find is an understandable tutorial or text which shows where to stick the code in the ATL template. The MSDN and all the other tutorials I have seen are more concerned with controls than code. Any help would be greatly appreciated.