Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

odl

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.

[odl]

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

Applies to

interface

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information about the attribute contexts, see Attribute Contexts.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.