其中一個是這樣的。
unit PComShowBil_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : $Revision: 1.130.1.0.1.0.1.6 $
// File generated on 03/02/2004 上午 11:40:03 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:/QCC/MtsServer/PComShowBil.tlb (1)
// LIBID: {F6089D6E-176F-41B2-91CD-448F3FBACF58}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v1.0 Midas, (C:/WINNT/system32/MIDAS.DLL)
// (2) v2.0 stdole, (C:/WINNT/system32/STDOLE2.TLB)
// (3) v4.0 StdVCL, (C:/WINNT/System32/stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
PComShowBilMajorVersion = 1;
PComShowBilMinorVersion = 0;
LIBID_PComShowBil: TGUID = '{F6089D6E-176F-41B2-91CD-448F3FBACF58}';
IID_IComShowBilObj: TGUID = '{33C495A8-A96A-4DEB-94BB-5505D8B73013}';
CLASS_ComShowBilObj: TGUID = '{D74F5238-DF8F-4834-8AFB-F8AAB8F858D8}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IComShowBilObj = interface;
IComShowBilObjDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
ComShowBilObj = IComShowBilObj;
// *********************************************************************//
// Interface: IComShowBilObj
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {33C495A8-A96A-4DEB-94BB-5505D8B73013}
// *********************************************************************//
IComShowBilObj = interface(IAppServer)
['{33C495A8-A96A-4DEB-94BB-5505D8B73013}']
procedure fgetempbil(vempid: OleVariant;
var vDatas: OleVariant;
iShow: Integer);
safecall;
end;
// *********************************************************************//
// DispIntf: IComShowBilObjDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {33C495A8-A96A-4DEB-94BB-5505D8B73013}
// *********************************************************************//
IComShowBilObjDisp = dispinterface
['{33C495A8-A96A-4DEB-94BB-5505D8B73013}']
procedure fgetempbil(vempid: OleVariant;
var vDatas: OleVariant;
iShow: Integer);
dispid 1;
function AS_ApplyUpdates(const ProviderName: WideString;
Delta: OleVariant;
MaxErrors: Integer;
out ErrorCount: Integer;
var OwnerData: OleVariant): OleVariant;
dispid 20000000;
function AS_GetRecords(const ProviderName: WideString;
Count: Integer;
out RecsOut: Integer;
Options: Integer;
const CommandText: WideString;
var Params: OleVariant;
var OwnerData: OleVariant): OleVariant;
dispid 20000001;
function AS_DataRequest(const ProviderName: WideString;
Data: OleVariant): OleVariant;
dispid 20000002;
function AS_GetProviderNames: OleVariant;
dispid 20000003;
function AS_GetParams(const ProviderName: WideString;
var OwnerData: OleVariant): OleVariant;
dispid 20000004;
function AS_RowRequest(const ProviderName: WideString;
Row: OleVariant;
RequestType: Integer;
var OwnerData: OleVariant): OleVariant;
dispid 20000005;
procedure AS_Execute(const ProviderName: WideString;
const CommandText: WideString;
var Params: OleVariant;
var OwnerData: OleVariant);
dispid 20000006;
end;
// *********************************************************************//
// The Class CoComShowBilObj provides a Create and CreateRemote method to
// create instances of the default interface IComShowBilObj exposed by
// the CoClass ComShowBilObj. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoComShowBilObj = class
class function Create: IComShowBilObj;
class function CreateRemote(const MachineName: string): IComShowBilObj;
end;
implementation
uses ComObj;
class function CoComShowBilObj.Create: IComShowBilObj;
begin
Result := CreateComObject(CLASS_ComShowBilObj) as IComShowBilObj;
end;
class function CoComShowBilObj.CreateRemote(const MachineName: string): IComShowBilObj;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ComShowBilObj) as IComShowBilObj;
end;
end.
unit PUpDateBil_TLB;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// PASTLWTR : $Revision: 1.130.1.0.1.0.1.6 $
// File generated on 03/02/2004 上午 11:40:26 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:/QCC/MtsServer/PUpDateBil.tlb (1)
// LIBID: {5A3AE2BB-9E82-4857-BBE7-081C32E4091C}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v1.0 Midas, (C:/WINNT/system32/MIDAS.DLL)
// (2) v2.0 stdole, (C:/WINNT/system32/STDOLE2.TLB)
// (3) v4.0 StdVCL, (C:/WINNT/System32/stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
PUpDateBilMajorVersion = 1;
PUpDateBilMinorVersion = 0;
LIBID_PUpDateBil: TGUID = '{5A3AE2BB-9E82-4857-BBE7-081C32E4091C}';
IID_IComUpdateBil: TGUID = '{7526560A-2C07-470F-BFC5-D2E468BD7F5F}';
CLASS_ComUpdateBil: TGUID = '{4FD915D9-B826-416C-98B6-79F07287620E}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IComUpdateBil = interface;
IComUpdateBilDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
ComUpdateBil = IComUpdateBil;
// *********************************************************************//
// Interface: IComUpdateBil
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {7526560A-2C07-470F-BFC5-D2E468BD7F5F}
// *********************************************************************//
IComUpdateBil = interface(IAppServer)
['{7526560A-2C07-470F-BFC5-D2E468BD7F5F}']
procedure UpdateBil(vInDatas: OleVariant;
maxError: Integer;
var errorCount: Integer;
var vOutDatas: OleVariant;
Sql: OleVariant;
icount: Integer);
safecall;
end;
// *********************************************************************//
// DispIntf: IComUpdateBilDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {7526560A-2C07-470F-BFC5-D2E468BD7F5F}
// *********************************************************************//
IComUpdateBilDisp = dispinterface
['{7526560A-2C07-470F-BFC5-D2E468BD7F5F}']
procedure UpdateBil(vInDatas: OleVariant;
maxError: Integer;
var errorCount: Integer;
var vOutDatas: OleVariant;
Sql: OleVariant;
icount: Integer);
dispid 1;
function AS_ApplyUpdates(const ProviderName: WideString;
Delta: OleVariant;
MaxErrors: Integer;
out ErrorCount: Integer;
var OwnerData: OleVariant): OleVariant;
dispid 20000000;
function AS_GetRecords(const ProviderName: WideString;
Count: Integer;
out RecsOut: Integer;
Options: Integer;
const CommandText: WideString;
var Params: OleVariant;
var OwnerData: OleVariant): OleVariant;
dispid 20000001;
function AS_DataRequest(const ProviderName: WideString;
Data: OleVariant): OleVariant;
dispid 20000002;
function AS_GetProviderNames: OleVariant;
dispid 20000003;
function AS_GetParams(const ProviderName: WideString;
var OwnerData: OleVariant): OleVariant;
dispid 20000004;
function AS_RowRequest(const ProviderName: WideString;
Row: OleVariant;
RequestType: Integer;
var OwnerData: OleVariant): OleVariant;
dispid 20000005;
procedure AS_Execute(const ProviderName: WideString;
const CommandText: WideString;
var Params: OleVariant;
var OwnerData: OleVariant);
dispid 20000006;
end;
// *********************************************************************//
// The Class CoComUpdateBil provides a Create and CreateRemote method to
// create instances of the default interface IComUpdateBil exposed by
// the CoClass ComUpdateBil. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoComUpdateBil = class
class function Create: IComUpdateBil;
class function CreateRemote(const MachineName: string): IComUpdateBil;
end;
implementation
uses ComObj;
class function CoComUpdateBil.Create: IComUpdateBil;
begin
Result := CreateComObject(CLASS_ComUpdateBil) as IComUpdateBil;
end;
class function CoComUpdateBil.CreateRemote(const MachineName: string): IComUpdateBil;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ComUpdateBil) as IComUpdateBil;
end;
end.