各位好:我在用delphi2006导入一个第三方库的时候其中有几个属性使用了Index,如下:
property CustomStorageString[var strName: WideString]: WideString read Get_CustomStorageString write Set_CustomStorageString;Set_CustomStorageString(var strName: WideString; var Param2: WideString); safecall;同样的代码,D7编译通过而且属性运行正常,在2006连编译都不通过,报错:
[Pascal Error] AscentCaptureModule_TLB.pas(1095): E2250 There is no overloaded version of 'Set_CustomStorageString' that can be called with these arguments

解决方案 »

  1.   

    我对照了两个版本的compile选项,是一样的,不知道是不是有什么其他不通的地方,请指教!
      

  2.   

    >>[Pascal Error] AscentCaptureModule_TLB.pas
    好像是你导入 AscentCaptureModule 这个 ocx 或 com的东西有问题,'Set_CustomStorageString' 的参数不对 
      

  3.   

    参数是没有问题的
    兄台可以测试下,这里只是申明了var类型参数,所以在2006里面编译不过,同样的代码7编译通过。虽然在代码里面有一些警告信息。