|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <comstl_interface_traits.h>
Static Public Methods | |
| REFIID | iid () |
| Returns a reference to the IID for the parameterising interface. | |
This traits class takes an interface type and provides a specialisation that has a statid iid() method which returns the interface identifier (IID) for that type.
To use, simply have the expression IID_traits<I>::iid() where I is your interface type.
On compilers that support the __uuidof pseudo-operator this is used, otherwise you must specify specialisations - using the COMSTL_IID_TRAITS_DEFINE macro - for your interfaces, as in
COMSTL_IID_TRAITS_DEFINE(IMyInterface)
All the interfaces currently defined in unknown.idl and objidl.idl are so defined in the file comstl_interface_traits_std.h, which is included in for non-__uuidof compilations.
| I | The interface |
|
|
Returns a reference to the IID for the parameterising interface.
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |