i have converted a vb6 ocx to C# com control.
this com control is set up by the following:
[Guid("986067DA-F6C4-4C19-82ED-5D4DF1F54DB1")]
[ClassInterface(ClassInterfaceType.AutoDual)]
//Implementing interface that will be visible from PowerBuilder
[ProgId("Cmnd90.ACmnd")]
[ComVisible(true)]
when loading this com control in a vb6 application, it is shown correctly.
but the customer is using powerbuilder and it is not showing there. the customer said that in order for the com control to show in his application we need to set the control’s TYPEFLAGS to TYPEFLAG_FCONTROL.
how can this be done in .NET?
Add the following decoration too :
See: http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.typelibtypeattribute.aspx