| title |
odl | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
language-reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
|
| ms.assetid |
75dcb314-b50f-4a63-9180-507ac1bc78f3 |
| caps.latest.revision |
9 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Identifies an interface as an Object Description Language (ODL) interface. The MIDL compiler does not require the odl attribute; it is recognized only for compatibility with older .odl files.
Remarks
The odl C++ attribute has the same functionality as the odl MIDL attribute.
// cpp_attr_ref_odl.cpp
// compile with: /LD
#include <unknwn.h>
[module(name="MyLIb")];
[odl, oleautomation, dual, uuid("00000000-0000-0000-0000-000000000001")]
__interface IMyInterface
{
HRESULT x();
};
[coclass, uuid("00000000-0000-0000-0000-000000000002")]
class cmyClass : public IMyInterface
{
public:
HRESULT x(){}
};
|
|
| Applies to |
interface |
| Repeatable |
No |
| Required attributes |
None |
| Invalid attributes |
None |
For more information about the attribute contexts, see Attribute Contexts.
IDL Attributes
Interface Attributes