M
mrzxc
Unregistered / Unconfirmed
GUEST, unregistred user!
我的客户端是nt4.0+ie6+pack#6
我先注册了sqldmo.dll
然后我用Delphi6 ->Project->import Type Library引入sqldmo.dll
生成SQLDMO_TLB.pas
uses SQLDM_TLB.pas
编译出错:
在SQLDMO_TLB.pas中
_DistributionArticle2Disp = dispinterface
['{10033116-E260-11CF-AE68-00AA004A34D5}']
property ID: Integer writeonly dispid 14;
property Application: Application readonly dispid 1;
property Parent: _IVSQLDMOStdObject readonly dispid 2;
property UserData: Integer dispid 3;
property TypeOf: SQLDMO_OBJECT_TYPE readonly dispid 4;
property Properties: Properties readonly dispid 7;
property Name: WideString dispid 9;
property ID: Integer readonly dispid 10;
property SourceObjectOwner: WideString dispid 11;
property SourceObjectName: WideString dispid 12;
property Description: WideString dispid 13;
procedure Remove; dispid 100;
procedure BeginAlter; dispid 101;
procedure DoAlter; dispid 102;
procedure CancelAlter; dispid 103;
end;
下面出现两个ID属性,出错信息为
[Error] SQLDMO_TLB.pas(12625): Identifier redeclared: 'ID'
我注释掉其中一个ID,然后再编译,又出错,提示:
[Error] Project1.dpr(11): Object or class type required
为什么?
我先注册了sqldmo.dll
然后我用Delphi6 ->Project->import Type Library引入sqldmo.dll
生成SQLDMO_TLB.pas
uses SQLDM_TLB.pas
编译出错:
在SQLDMO_TLB.pas中
_DistributionArticle2Disp = dispinterface
['{10033116-E260-11CF-AE68-00AA004A34D5}']
property ID: Integer writeonly dispid 14;
property Application: Application readonly dispid 1;
property Parent: _IVSQLDMOStdObject readonly dispid 2;
property UserData: Integer dispid 3;
property TypeOf: SQLDMO_OBJECT_TYPE readonly dispid 4;
property Properties: Properties readonly dispid 7;
property Name: WideString dispid 9;
property ID: Integer readonly dispid 10;
property SourceObjectOwner: WideString dispid 11;
property SourceObjectName: WideString dispid 12;
property Description: WideString dispid 13;
procedure Remove; dispid 100;
procedure BeginAlter; dispid 101;
procedure DoAlter; dispid 102;
procedure CancelAlter; dispid 103;
end;
下面出现两个ID属性,出错信息为
[Error] SQLDMO_TLB.pas(12625): Identifier redeclared: 'ID'
我注释掉其中一个ID,然后再编译,又出错,提示:
[Error] Project1.dpr(11): Object or class type required
为什么?