Do I need to write a COM object or can I call the function from vb? Which is more effective and how do I do that?

Thanks for all the help.