c# - Issue with importing tlb into c++ client code -
suppose have following definitions :
namespace baseifsnamespace //defined in assembly a1 { [comvisible(true)] [guid("2e6cb2b7-8884-4250-87a5-83bf52ee5d29")] public interface baseifs { void testm(string s1); } }
and
namespace derivedcom //defined in assembly a2 { [comvisible(true)] [progid("derivedcom.derivedcom")] [guid("ac01fd21-4708-4296-9b2e-b268bc1d880b")] //[classinterface.none] public class derivedcom : baseifs { public void testm(string s1) { //some implementation } } }
i generate type libraries a1.tlb , a2.tlb correspondingly. when use a2 in c++ client code following
#import "c:\path11\derivedcom.tlb" no_namespace raw_interface_only
i got error c1084 typelibrary cannot imported. how correctly should generate tlbs ( checked regasm ) , there need somehow define a2.tlb depends on tlb1 ? saw related post here , know openning oleview can locally resolve issue need more common solution ( work on build server ) in advance
Comments
Post a Comment