Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For Each.... Next & IEnumXXX

Status
Not open for further replies.

LazyMe

Programmer
Jan 13, 2003
938
MX
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top