odl

인터페이스를 ODL(개체 설명 언어) 인터페이스로 식별합니다. MIDL 컴파일러에는 odl 특성이 필요하지 않습니다. 이전 .odl 파일과의 호환성에 대해서만 인식됩니다.

구문

[odl]

설명

odl C++ 특성에는 odl MIDL 특성과 동일한 기능이 있습니다.

예시

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

요구 사항

특성 컨텍스트
적용 대상: interface
반복 가능 아니요
필수 특성 없음
잘못된 특성 없음

특성 컨텍스트에 대한 자세한 내용은 특성 컨텍스트를 참조하세요.

참고 항목

IDL 특성
인터페이스 특성