Partager via


odl

Identifie une interface en tant qu’interface ODL (Object Description Language). Le compilateur MIDL ne nécessite pas l’attribut odl ; il est reconnu uniquement pour la compatibilité avec les fichiers .odl plus anciens.

Syntaxe

[odl]

Notes

L’attribut odl C++ a les mêmes fonctionnalités que l’attribut odl MIDL.

Exemple

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

Spécifications

Contexte d’attribut Value
S’applique à interface
Renouvelable Non
Attributs requis Aucun
Attributs non valides Aucun

Pour plus d'informations sur les contextes d'attribut, consultez Contextes d'attribut.

Voir aussi

Attributs IDL
Attributs d’interface