I need to create an object at runtime from a user specified class. The object is using a standard interface (infact I created a class (in project1) called "iExternal" that has this interface). The external object happens to have a couple of events that I need to handle. If I usethen I get e type mismatch. I really need to handle the events in project2.class1. Is there a way to do this? The reason I tried this is another vb resource that talked about polymorphism said this could be done. I really need help on this one. My project is scrapped without a workaround.Code:Dim a As iExternal Set a = CreateObject("project2.class1")
BTW, since this is to allow for third-party plugins, I can't use any design-time references to the created object.




Reply With Quote