Register for COM Interoperability

江枫思渺然 提交于 2019-12-03 21:59:23

You probably need to use /codebase regasm key:

regasm your_assembly_name.dll /codebase

I've some things diferents in my COM assemblies:

[InterfaceType(ComInterfaceType.InterfaceIsDual)]
//[Guid(<Generate GUID here>)]
public interface _None1
{
    [DispId(1)]
    int retval { get; }
}

[ClassInterface(ClassInterfaceType.None)]
//[Guid(<Generate GUID here>)]
[ProgId("Lotr.Test")]
public class None : _None1
{
    [STAThread]
    public int retval
    {
        get
        { return 1; }
    }
} 

and I don't know if in a COM interface you can use getter and setter operations... maybe someone knows and help us :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!