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
COM
id
in
int
odl
out
ptr
ref
Expand Minimize

midl_pragma warning attribute

Use the midl_pragma warning option to temporarily override MIDL's warning message behavior at compile time.


midl_pragma warning ( warning_option : message_list )

Parameters

warning_option

The warning option can be one of the following: disable, enable, default.

message_list

A list of message numbers separated by spaces.

Remarks

The pragma can be used like a C-compiler pragma. That is, it disables, enables, or returns to the default behavior for a given MIDL warning.

Examples

#if (__midl >= 501)
midl_pragma warning( disable: 2007 )   // file already imported midl_pragma warning( disable: 2209 )   // ignored redundant attr
#endif

See also

pragma

 

 

Community Additions

ADD
Show:
© 2015 Microsoft