【delphi开源代码栏目提醒】:网学会员delphi开源代码为您提供DSServer_TLB.pas参考,解决您在DSServer_TLB.pas学习中工作中的难题,参考学习。
unit DSServer_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 2002-6-16 14:55:39 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\Samples\Delphi6\DataSnap\Server\DSServer.tlb (1)
// LIBID: {6A3A7B6D-858A-49CE-8EEE-D7A81DCFF110}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINDOWS\System32\STDVCL40.DLL)
// (3) v1.0 Midas, (C:\WINDOWS\System32\midas.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
DSServerMajorVersion = 1;
DSServerMinorVersion = 0;
LIBID_DSServer: TGUID = '{6A3A7B6D-858A-49CE-8EEE-D7A81DCFF110}';
IID_IMyAppServ: TGUID = '{A24DBC68-F3F1-4E86-A832-268FA541ECBD}';
CLASS_MyAppServ: TGUID = '{8CF893CA-C723-408F-8134-B561DF902A91}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IMyAppServ = interface;
IMyAppServDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
MyAppServ = IMyAppServ;
// *********************************************************************//
// Interface: IMyAppServ
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A24DBC68-F3F1-4E86-A832-268FA541ECBD}
// *********************************************************************//
IMyAppServ = interface(IAppServer)
['{A24DBC68-F3F1-4E86-A832-268FA541ECBD}']
end;
// *********************************************************************//
// DispIntf: IMyAppServDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {A24DBC68-F3F1-4E86-A832-268FA541ECBD}
// *********************************************************************//
IMyAppServDisp = dispinterface
['{A24DBC68-F3F1-4E86-A832-268FA541ECBD}']
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 CoMyAppServ provides a Create and CreateRemote method to
// create instances of the default interface IMyAppServ exposed by
// the CoClass MyAppServ. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoMyAppServ = class
class function Create: IMyAppServ;
class function CreateRemote(const MachineName: string): IMyAppServ;
end;
implementation
uses ComObj;
class function CoMyAppServ.Create: IMyAppServ;
begin
Result := CreateComObject(CLASS_MyAppServ) as IMyAppServ;
end;
class function CoMyAppServ.CreateRemote(const MachineName: string): IMyAppServ;
begin
Result := CreateRemoteComObject(MachineName, CLASS_MyAppServ) as IMyAppServ;
end;
end.
上一篇:
DSPXS.PAS
下一篇:
爱情只不过就是,爱与不爱