Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

cpp_quote 

Emits the specified string, without the quote characters, into the generated .idl file.


[ cpp_quote(
   "statement"
) ];

Parameters

statement

A C instruction.

The cpp_quote C++ attribute is useful if you want to put a preprocessor directive in an .idl file.

You can also use cpp_quote and generate an .h file as part of the MIDL compilation. For example, if you have a C++ header file that uses C++ IDL attributes but cannot use this file for some task, then you can compile it to create a MIDL-generated .h file, which you should be able to use.

The cpp_quote attribute has the same functionality as the cpp_quote MIDL attribute.

See the example for dual for an example use how to use cpp_quote.

Attribute Context

Applies to

Anywhere

Repeatable

No

Required attributes

None

Invalid attributes

None

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

Community Additions

ADD
Show:
© 2015 Microsoft