I guess you're using an ActiveX control and you need to create an object for that control - is that right?

If so you should probably just create an object of the type the ActiveX control is looking for. When you use GetType.Type on a COM object, you get System.__ComObject. I'm assuming you've done this and this is why you think you need to turn an int into a System.__ComObject.

Instead, you need to figure out what type of object it really is, by using the "as" operator.

I'm guessing a bunch here, if you provide more details I might be able to help more.

Mike