G
Guest
Two questions:
1) I have an assembly that defines the interface for a component. The
assembly only contains the interface (as per component development guidance),
a different assembly contains the C++ classes that implement the interface.
When I write a VB app that references both strong named assemblies, the
VS2005 object browser and intellisense tells me the namespace (shared by both
interface and implementation class) identifier is ambiguous because the
interface is showing up in both assemblies. What am I doing wrong?
2) I have a few static events on an C++ implementation class found in a
strong named assembly. All works fine when a simple VB app references the
assembly, the VB app can register for and receive the events but has to
reference the C++ class in the assembly. If I try to add the events to the
interface the C++ class implements, I get compile errors that indicate you
cannot have static events on an interface. If I get rid of the static
modifier, all heck breaks loose. Any suggestions (note the events pass
arguments)?
Thanks
1) I have an assembly that defines the interface for a component. The
assembly only contains the interface (as per component development guidance),
a different assembly contains the C++ classes that implement the interface.
When I write a VB app that references both strong named assemblies, the
VS2005 object browser and intellisense tells me the namespace (shared by both
interface and implementation class) identifier is ambiguous because the
interface is showing up in both assemblies. What am I doing wrong?
2) I have a few static events on an C++ implementation class found in a
strong named assembly. All works fine when a simple VB app references the
assembly, the VB app can register for and receive the events but has to
reference the C++ class in the assembly. If I try to add the events to the
interface the C++ class implements, I get compile errors that indicate you
cannot have static events on an interface. If I get rid of the static
modifier, all heck breaks loose. Any suggestions (note the events pass
arguments)?
Thanks