Differences Between MIDL and MKTYPLIB

There are a few key areas in which the MIDL compiler differs from MKTYPLIB. Most of these differences arise because MIDL is oriented more toward C-syntax than MKTYPLIB.

In general, you will want to use the MIDL syntax in your IDL files. However, if you need to compile an existing ODL file, or otherwise maintain compatibility with MKTYPLIB, use the /mktyplib203 MIDL compiler option to force MIDL to behave like MKTYPLIB.EXE, version 2.03. (This is the last release of the MKTYPLIB tool.) Specifically, the /mktyplib203 option resolves these differences:

The following differences in behavior can not be resolved by using the /mktyplib203 switch:

See Also

/mktyplib203, /iid, Marshaling OLE Data Types