/dlldata switch
The /dlldata switch is used to specify the file name for the generated dlldata file for a proxy DLL. The default file name Dlldata.c is used if the /dlldata switch is not specified.
midl /dlldata file-name
Switch Options
-
file-name
-
The name of the C source file the MIDL compiler will generate for the proxy DLL.
Remarks
The file specified by file-name 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 identifier 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.
Examples
midl /dlldata data.c
See also