I stumbled into a problem I can't find anything about in the forums (except for a similair post in the ATL forum with no replies).
The problem is that I've created some COM objects in C++. These objects expose some COM collections in which I've implemented the IEnumVariant interface, so from within VB I can use the For Each ... Next blocks. So far so good (everything works fine). But now I want to separate the type library that contains the interface definitions from the binary that actually contains the COM objects (I need to implement the same interfaces in a few different COM servers). This works for all the methods and interfaces implemented, however, it does not work for the _NewEnum method (which, of course, has been transfered to the interfaces type library as well). It seems like VB searches for this method in the type library that contains the actual COM object and not in the one containing the interface definition, although every other method is being found in the interfaces type library. Has anyone ever faced this problem, or tried something similair?
Greetings,
Rick
The problem is that I've created some COM objects in C++. These objects expose some COM collections in which I've implemented the IEnumVariant interface, so from within VB I can use the For Each ... Next blocks. So far so good (everything works fine). But now I want to separate the type library that contains the interface definitions from the binary that actually contains the COM objects (I need to implement the same interfaces in a few different COM servers). This works for all the methods and interfaces implemented, however, it does not work for the _NewEnum method (which, of course, has been transfered to the interfaces type library as well). It seems like VB searches for this method in the type library that contains the actual COM object and not in the one containing the interface definition, although every other method is being found in the interfaces type library. Has anyone ever faced this problem, or tried something similair?
Greetings,
Rick