I have a little c# class that I need to expose as COM. THe tool that will use the COM object requires that I support STA. Is there anything special that I need to do with my COM object?
(I know about the STAThread attribute, but (unless I'm wrong) It is for indicating that a thread of execution in .net is to be STA compatible, and not for indicating that my COM object needs to be compatible).
Here's my declaration so far. Do you see anything that I need to add?
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(ITestClass1))]
[Guid("093A3701-2C53-4A31-97C5-0F3C205E5B4C")]
public class Class1: ITestClass1 {..}
[ComVisible(true)]
[Guid("8D52F785-CDD8-4248-8AB7-97B8C19DE59B")]
public interface ITestClass1 {..}