I have a legacy Visual Studio solution which contains several projects (has been upgraded to Visual Studio 2013). One of these projects generates a COM DLL. The TLB from this DLL is then imported into an IDL file of another project via the importlib attribute. When the MIDL compiler tries to compile the IDL file of the dependent project it generates the following warning:
warning MIDL2015: failed to load tlb in importlib
When I use the full path to the TLB file it works.
I have tried adding the path to the MIDL -> Additional Include Directories property but I think this is only for IDL, header, and ACF files (/I switch).
I've also tried the Linker -> Additional Library Directories property but this didn't work either.
What search path does MIDL use when resolving the importlib attributes?