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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

S.O.S!!!

Status
Not open for further replies.

Markino

Programmer
Oct 10, 2003
14
IT
Hi all,
(excuse me for my terrible english!)
I have a COM obj_1 (source code!) and I need to create another COM obj_2 that has the same interfaces but for same methods I'd like to add same functionality (I can't modify obj_1 impl.!).

For example, obj_1 has one method that returns same info from the server... I need to add same fields (like "record just imported" and "desc.") to this info. I can store the additionally fields in a local DB but how can I create obj_2 from obj_1?
I must use VIsual C++ 6 an I can use ATL too...




Best regards, bye from Italy!!!!
Marco
 
use aggergation. By using aggregation you could expose serevr's interfaces as your own. In this way, you can extend/subclass the server.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Many thanks!!!! :)

Could you suggest the best book for COM/ATL dev.?!
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top