RE: Component and Interface
Markus Ostenried <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
At 15:30 Friday, 11.07.2003 +0200, you wrote: >You probably have not managed the _AddRef and _Release methods I did this now and it works. I thought that TComponent does it already *correctly* because in the help I saw it implements these methods. >...try descending the TMsgComp class from TInterfacedObject, Didn't want to do that because I like having an owner for the contained objects. >which automatically handles the reference counting for you That's right - I've copied the code from there. >....and use IInterface instead of IUnknown as your interface ancestor, >which implements the reference handling >interfaces.... I'm using Delphi 5 - IInterface is first available with Delphi 6. Thanks, Markus ------------------------ Yahoo! Groups Sponsor ---------------------~--> Free shipping on all inkjet cartridge & refill kit orders to US & Canada. We have your brand: HP, Epson, Lexmark, Canon & more. http://www.c1tracking.com/l.asp?cid=5510 http://us.click.yahoo.com/kP..SB/49VGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> CodeCoffer the new code protection tool! http://www.delphicollection.com/public/CodeCoffer.htm --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/