odl

Identifiziert eine Schnittstelle als ODL-Schnittstelle (Object Description Language). Der MIDL-Compiler erfordert nicht das ODL-Attribut . Es wird nur für Kompatibilität mit älteren ODL-Dateien erkannt.

Syntax

[odl]

Hinweise

Das Odl C++-Attribut weist die gleiche Funktionalität wie das ODL MIDL-Attribut auf.

Beispiel

// 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(){}
};

Anforderungen

Attributkontext Wert
Gilt für interface
Wiederholbar Nein
Erforderliche Attribute None
Ungültige Attribute None

Weitere Informationen zu den Attributkontexten finden Sie unter Attributkontexte.

Siehe auch

IDL-Attribute
Schnittstellenattribut