Skip to content

Latest commit

 

History

History
55 lines (53 loc) · 2.12 KB

File metadata and controls

55 lines (53 loc) · 2.12 KB
title Compiler Attributes | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic language-reference
dev_langs
C++
helpviewer_keywords
cl.exe compiler, attributes
attributes [C++], compiler
ms.assetid 53cd9bee-1521-48ec-b171-80feac2096cc
caps.latest.revision 7
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

Compiler Attributes

Compiler attributes provide a variety of functionality.

Attribute Description
emitidl Determines whether all subsequent IDL attributes will be processed and placed in the generated .idl file.
event_receiver Creates an event receiver.
event_source Creates an event source.
export Causes a data structure to be placed in the .idl file.
implements Specifies dispatch interfaces that are forced to be members of the IDL coclass.
importidl Inserts the specified .idl file into the generated .idl file.
importlib Makes types that have already been compiled into another type library available to the type library being created.
includelib Causes an .idl or .h file to be included in the generated .idl file.
library_block Places a construct inside the .idl file's library block.
no_injected_text Prevents the compiler from injecting code as a result of attribute use.
satype Specifies the data type of the SAFEARRAY.
version Identifies a particular version among multiple versions of an interface or class.

See Also

Attributes by Group