Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 WinNT 4.0 or Win95 with DCOM
to 
#define _WIN32_WINNT 0x0500   //for WinNT 4.0 or Win95 with DCOM

For information on how to access the Advanced property page in the MIDL folder, see Setting Visual C++ Project Properties.

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

See Also

MIDL Property Pages

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.