midl /I include_path
midl /I c:\include;c:\include\h /I\include2 filename.idl
The /I switch specifies directories to be searched for imported IDL files, included header files, and ACF files. More than one directory can appear with each /I switch, and more than one /I switch can appear with each MIDL compiler invocation. Directories are searched in the order they are specified.
The /I switch setting is also passed by the MIDL compiler to the C compiler's C preprocessor. When the /cpp_cmd switch is present and the /cpp_opt switch is not, the MIDL compiler concatenates the string specified by the /cpp_cmd switch with the /I, /D, and /U options and uses this concatenated string to invoke the C preprocessor for each IDL and ACF source file. The MIDL compiler switch /I is not passed to the preprocessor when the MIDL compiler switch /no_cpp or /cpp_opt is specified.
In Microsoft operating-system environments (32-bit Windows, 16-bit Windows, and MS-DOS), directories are searched in the following sequence:
When directories are specified with the /I switch, the /no_def_idir switch instructs the MIDL compiler to ignore the current directory, ignore the directories specified by the INCLUDE environment variable, and search only the specified directories.
When no directories are specified with the /I switch, the /no_def_idir switch instructs the MIDL compiler to search only the current directory.
General MIDL Command-line Syntax, /acf, /cpp_cmd, /cpp_opt, /no_def_idir