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.

MIDL Property Pages: Advanced

The Advanced property page in the MIDL folder specifies the following MIDL compiler options:

  • Enable Error Checking (/error)

  • Check Allocations (/error)

  • Check Bounds (/error)

  • Check Enum Range (/error)

  • Check Reference Pointers (/error)

  • Check Stub Data (/error)

  • Validate Parameters (/robust) *

  • Struct Member Alignment (/Zp)

  • Redirect Output (/o)

  • C Preprocess Options (/cpp_opt)

  • Undefine Preprocessor Definitions (/U)

* /robust is only for use when building for a Windows 2000 or later machine. If you build an ATL project and want to use /robust, change this line in the dlldatax.c file:

#define _WIN32_WINNT 0x0400   //for Windows NT 4.0 or Windows 95 with DCOM
to 
#define _WIN32_WINNT 0x0500   //for Windows NT 4.0 or Windows 95 with DCOM

For information on how to access the Advanced property page in the MIDL folder, see How To: Specify Project Properties with Property Pages.

For information on how to programmatically access MIDL options for C++ projects, see VCMidlTool.

Community Additions

ADD
Show:
© 2015 Microsoft