Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 14787, COM Aggregation example

by Ionel Munoz Email: Anonymous


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 5.0  to 5.0 1598 downloads
Copyright: No significant restrictions


Size: 21,443 bytes
Updated on Thu, 08 Jun 2000 06:14:42 GMT
Originally uploaded on Thu, 08 Jun 2000 06:14:42 GMT
SHA1 Hash: C3A8907557276DB5FC7A43E7CF5796B5178DFF38
MD5 Hash: 92691FE8DC7D95D8018D987D3C503C4D

    Explore the files in this upload

Description
This example shows how to use aggregation in COM. An object can take advantage of the implementation of an interface already implemented by another object, simply using COM aggregation. ATL 3 provides a simple way of doing so, and this code shows how to do it in C++Builder 5. This subject is not covered (to the moment) in the "C++Builder 5 Developer's Guide" book, to be published by Sams the next september.

Here, the Outer object implements the IOuter interface, while the Inner object implements the IInner interface. As the Outer object aggregates the Inner one, it also implements the IInner interface.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03