STL.NET news

  • Thread starter Thread starter Andrew Roberts
  • Start date Start date
Unfortunately not, the fully qualified type name includes the assembly name,
it cannot be the same type in two different assemblies. If you have two
different assemblies that contain a type they are two different types. Its
the same problem if you create multiple interop assemblies for COM, rather
than a single PIA, the identical interfaces in each interop assembly are
viewed incorrectly as different types.

What you want to do is to just reference the type from the other assembly
but you can't do that because it is a compile time template so you must
include the header which brings it into your assembly. This is why cross
assemblies we need to use generic types as veneers that we can reference
instead to solve the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top