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 How To: Specify Project Properties with Property Pages.
For information on how to programmatically access MIDL options for C++ projects, see VCMidlTool.