/dlldata

midl /dlldata

Example

midl /dlldata data.c

 

Remarks

The /dlldata switch is used to specify the filename for the generated dlldata file for a proxy DLL. The default filename  dlldata.c  is used if the /dlldata switch is not specified.

The dlldata file must be linked to the proxy DLL. The dlldata file contains entry points and data structures required by the class factory for the proxy DLL. These data structures specify the object interfaces contained in the proxy DLL. The dlldata file also specifies the class ID of the class factory for the proxy DLL. This is always the UUID (IID) of the first interface of the first proxy file (by alphabetical order).

The same dlldata file should be specified when invoking MIDL on all the IDL files that will go into a particular proxy DLL. The dlldata file is created or updated during each MIDL compilation, incrementally building a list of the interfaces that will go into the proxy DLL.

See Also

General MIDL Command-line Syntax