K
kathy
Could anyone know where I can find example to write a COM
component / ActiveX control in C# which can be used by
VB6/VC6?
component / ActiveX control in C# which can be used by
VB6/VC6?
Drebin said:And the super-short version of the key elements... in the project
properties, you enable COM Interop.. then you us the ComVisible attribute
above everything you want to be..... you guessed it, visibel from COM:
[ComVisible(true)]
class MyClass
{
[ComVisible(true)]
public void SomeFunc()
{
}
}
And there is some attribute at the Class level - where you specify what the
ProgID should be.. aside from that, this is the short course...
http://msdn.microsoft.com/library/d.../cpconexposingnetframeworkcomponentstocom.aspChris Taylor said:Hi,
The following link should be a good starting point,Watch for line wrap!
Hope this helps
Chris Taylor