home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
Chip_1999-03_cd.bin
/
zkuste
/
delphi
/
INFO
/
DI9812RL.ZIP
/
AdoProj_TLB.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-07-14
|
2KB
|
75 lines
unit AdoProj_TLB;
{ This file contains pascal declarations imported from a type library.
This file will be written during each import or refresh of the type
library editor. Changes to this file will be discarded during the
refresh process. }
{ AdoProj Library }
{ Version 1.0 }
interface
uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
const
LIBID_AdoProj: TGUID = '{D048AEC0-0C10-11D2-A5E7-0040053BA735}';
const
{ Component class GUIDs }
Class_DelphiADO: TGUID = '{D048AEC2-0C10-11D2-A5E7-0040053BA735}';
type
{ Forward declarations: Interfaces }
IDelphiADO = interface;
IDelphiADODisp = dispinterface;
{ Forward declarations: CoClasses }
DelphiADO = IDelphiADO;
{ Dispatch interface for DelphiADO Object }
IDelphiADO = interface(IDispatch)
['{D048AEC1-0C10-11D2-A5E7-0040053BA735}']
function Get_CustomerCount: Integer; safecall;
function Get_Version: WideString; safecall;
property CustomerCount: Integer read Get_CustomerCount;
property Version: WideString read Get_Version;
end;
{ DispInterface declaration for Dual Interface IDelphiADO }
IDelphiADODisp = dispinterface
['{D048AEC1-0C10-11D2-A5E7-0040053BA735}']
property CustomerCount: Integer readonly dispid 1;
property Version: WideString readonly dispid 2;
end;
{ DelphiADOObject }
CoDelphiADO = class
class function Create: IDelphiADO;
class function CreateRemote(const MachineName: string): IDelphiADO;
end;
implementation
uses ComObj;
class function CoDelphiADO.Create: IDelphiADO;
begin
Result := CreateComObject(Class_DelphiADO) as IDelphiADO;
end;
class function CoDelphiADO.CreateRemote(const MachineName: string): IDelphiADO;
begin
Result := CreateRemoteComObject(MachineName, Class_DelphiADO) as IDelphiADO;
end;
end.