المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Advanced C# Question



C# Programming
03-15-2010, 04:30 PM
Hi All,

I want to be able to create an instance of a COM object dynamically, given it's GUID. Having created an instance of the COM object I would like to use reflection to show in a list control the functions that this object exports. I don't want to import the COM object at design time and create a class from it - the COM object is changing regularly, it's a test harness that's being developed concurrently by a set of users.

Is this possible? If so, how do I create the COM object from the GUID only?

Thanks in advance,

Dave Kerr