Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

/header switch

The /header switch specifies the name of the header file.


midl /header filename

Switch Options

filename

Specifies a header file name that overrides the default header file name. File names can be explicitly quoted using double quotes (") to prevent the shell from interpreting special characters.

Remarks

The specified file name replaces the default file name. The default file name is obtained by replacing the IDL file name extension (usually .idl) with the file name extension .h. For OLE interfaces, the /header switch overrides the default name of the interface header file.

When you are importing files, the specified file name applies to only one header file — the header file that corresponds to the IDL file specified on the command line.

If filename does not include an explicit path, the file is written to the current directory or the directory specified by the /out switch. An explicit path in filename overrides the /out switch specification.

Examples

midl /header "bar.h" filename.idl

See also

General MIDL Command-line Syntax
/h
/cstub
/out
/sstub
/proxy

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.