[COM Interop] #import not working

Dear all,

I'm trying to add new functionality to an existing project written in unmanaged C/C++, and the original developer didn't use Visual Studio. The new functionality is in managed code, and my strategy was to expose it as a COM component via .NET COM interop. Using the right project options, I generated a TLB file and registered it.

The problem is that when I try to #import the TLB file into my project, it gives me an error that the dependent "mscorlib.tlb" cannot be found. Indeed, the project uses a "sources" file for its build process and there is not mention there of the path to the .NET TLB files. How can I modify the sources file to make it look in there? Is there another workaround?

Thank you very much!

Sincerely,
Ruslan
Topic archived. No new replies allowed.