Gareth_Hastings wrote: Set MyDCOM = CreateObject("NODMON.NODCLS") retval = MyDCOM.addmsg("", "", 1, Now, 0, 3000, Message) What you are doing here is late binding in VB. While C# does support late-bound object creation (i.e.; look at Activator.CreateInstance), there are several ways to access what you are doing. One is to generate the appropriate interop assemblies (for example if you are using Visual Studio .NET you can simply use the Add Reference -> COM tab), this will allow you to declare the object and take advantage of early-binding at compile-time or you could use reflection to generate the object at run-time (the Activator class). - Nick Parker
My Blog | My Articles