midl /mktyplib203
midl /mktyplib203 myoldodl.odl
midl /mktyplib203 oldhabit.idl
The /mktyplib203 switch forces the MIDL compiler to parse the input file in much the same manner as MKTYPLIB.EXE, version 2.03, would handle the file. In order to use this switch, the input file must follow the ODL syntax exactly — you cannot place any statements outside of the library block. Specifically, using the /mktyplib203 switch resolves the following discrepancies between MKTYPLIB and MIDL:
See Differences Between MIDL and MKTYPLIB for a more detailed description of these differences and a discussion of the differences between MKTYPLIB and MIDL that cannot be resolved by using the /mktyplib203 switch.
General MIDL Command-line Syntax, Generating a Type Library With MIDL, Differences Between MIDL and MKTYPLIB