首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

Type Library的异常

2012-02-04 
Type Library的错误在TypeLibraryEditor中写IArcFeatureLayerinterface(IArcLayer)[ {39257EB2-75F9-4F2F

Type Library的错误
在Type   Library   Editor中写
    IArcFeatureLayer   =   interface(IArcLayer)
        [ '{39257EB2-75F9-4F2F-B96D-158987A5FD97} ']
        function   AddGeometry(AGeometry:   OleVariant):   OleVariant;   safecall;
        procedure   DeleteFeatures(AFeatureCursor:   OleVariant);   safecall;
        procedure   DeleteSelectedFeatures;   safecall;
        function   GetSelectedFeatures:   OleVariant;   safecall;
        function   Get_Property1:   Integer;   safecall;
        property   Property1:   Integer   read   Get_Property1;
    end
保存时提示“继承等级中有重复的ID”。这个很令我奇怪,接口是可以继承的,怎么在这里还不让呢?


[解决办法]
我测试了一下都没问题啊
[解决办法]
CTRL+SHIFT+G重新产生一个GUID给这个接口试试

热点排行