
Reuse code when interfaces implements the same method
Quote:
>Is there a way to let both interfaces use the same
>method?
I don't think there is (in VB at least). You could code a private
GetCustomer and routes each of the interface methods to it.
Quote:
>By the way is there anybody who now some good book covering IDL
programming?
Assuming you are talking about using interfaces in ActiveX components
(specifically with VB):
"Java Design" ISBN 0-13-271149-4
This book has some good stuff on designing with interfaces. A helpful book
for anything (not just Java).
"Professional DCOM Programming" ISBN 1-861000-60-X
A C++ book but helped me learn a lot more about COM/DCOM and interfaces.
"{*filter*} Visual Basic" ISBN 1-57231-422-2
Not exclusively about interfaces but a dense book with some good material on
interfaces and polymorphism.
"Com and Dcom : Microsoft's Vision for Distributed Objects"
ISBN 047119381X
Uses Java for the middle tier examples but some good material on interface
design.
"Doing Objects in Micorsoft Visual Basic 5.0"
ISBN 1-562-76-444-6
A clear, straight-forward chapter on interfaces.
Hope this helps
Quote: