c++ - Fatal error C1804. cannot read type library file -
i have c++ project importing 2 .tlbs in header file.
#import "..\bin\derived.tlb" named_guids raw_interfaces_only #import "..\bin\base.tlb" named_guids raw_interfaces_only
now derived.tlb
dependent on base.tlb. there base classes in base.tlb
classes in derived.tlb
based on.
when compile,
"fatal error c1084: cannot read type library file '..\derived.tlb': error loading type library/dll."
now it's complaining derived.tlb
problem seems in not being able find base.tlb
.
base.tlb
comes c# com interop
project. if check "register com interop" in build tab of c# project, problem goes away in c++ project. don't want register it. gets built on build machine shouldn't have registered on it. create .tlb
post build step tlbexport
.
the tlb
gets created in correct folder appears without registration, #import
can't find base.tlb
when importing derived.tlb
.
i see in process monitor, it's trying hell of lot of places find base.tlb
not correct folder equates ..\bin\
.
what can searching in right place? adding entry in "additional include directories" in c++ project doesn't seem help.
Comments
Post a Comment