Export (0) Print
Expand All
COM
id
in
int
odl
out
ptr
ref
Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.