importlib

library (library-name) importlib(file-to-import) }

file-to-import

The name and location of the imported file at MIDL compile-time.

 

Example

library BrowseHelper

    importlib("stdole.tlb");

    importlib("mydisp.tlb");

//remainder of library definition

};

 

Remarks

The importlib directive makes types that have already been compiled into another type library available to the library being created. All importlib directives must precede the other type descriptions in the library.

 

Note  Because the importlib directive makes any type defined in the imported library accessible from within the library being compiled, ambiguity is resolved as follows. If the imported libraries contain duplicate references, MIDL will use the last reference that it finds. This is in contrast to MKTYPLIB, which uses the first reference that it finds.

 

The imported type library should be distributed with the library being compiled.

See Also

library, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL