Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3927

Show
Ignore:
Timestamp:
09/08/08 16:28:51 (2 months ago)
Author:
sean
Message:

Added IUnknown interface and changed current class to a mixin template. This closes #1017

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/sys/win32/IUnknown.d

    r3812 r3927  
    1717 
    1818 
    19 class IUnknown 
     19interface IUnknown 
     20
     21    HRESULT QueryInterface(IID* riid, void** pvObject); 
     22    ULONG AddRef(); 
     23    ULONG Release(); 
     24
     25 
     26 
     27/** 
     28 * This implementation may be mixed into COM classes to avoid code duplication. 
     29 */ 
     30template IUnknownImpl() 
    2031{ 
    2132    HRESULT QueryInterface( REFIID iid, out IUnknown obj )