📄 server_tlb.pas
字号:
unit Server_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.11.1.75 $
// File generated on 3/1/99 2:24:16 AM from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\My Documents\DelphiMag, April99\ByteArray\Server.tlb
// IID\LCID: {BA2BF825-CF76-11D2-AF31-0000861EF0BB}\0
// Helpfile:
// HelpString: Project1 Library
// Version: 1.0
// ************************************************************************ //
interface
uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
// *********************************************************************//
// 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
LIBID_Server: TGUID = '{BA2BF825-CF76-11D2-AF31-0000861EF0BB}';
IID_IBinaryData: TGUID = '{BA2BF826-CF76-11D2-AF31-0000861EF0BB}';
CLASS_BinaryData: TGUID = '{BA2BF828-CF76-11D2-AF31-0000861EF0BB}';
type
// *********************************************************************//
// Forward declaration of interfaces defined in Type Library //
// *********************************************************************//
IBinaryData = interface;
IBinaryDataDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library //
// (NOTE: Here we map each CoClass to its Default Interface) //
// *********************************************************************//
BinaryData = IBinaryData;
// *********************************************************************//
// Interface: IBinaryData
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BA2BF826-CF76-11D2-AF31-0000861EF0BB}
// *********************************************************************//
IBinaryData = interface(IDispatch)
['{BA2BF826-CF76-11D2-AF31-0000861EF0BB}']
function Get_Data: OleVariant; safecall;
procedure Set_Data(Value: OleVariant); safecall;
property Data: OleVariant read Get_Data write Set_Data;
end;
// *********************************************************************//
// DispIntf: IBinaryDataDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BA2BF826-CF76-11D2-AF31-0000861EF0BB}
// *********************************************************************//
IBinaryDataDisp = dispinterface
['{BA2BF826-CF76-11D2-AF31-0000861EF0BB}']
property Data: OleVariant dispid 1;
end;
CoBinaryData = class
class function Create: IBinaryData;
class function CreateRemote(const MachineName: string): IBinaryData;
end;
implementation
uses ComObj;
class function CoBinaryData.Create: IBinaryData;
begin
Result := CreateComObject(CLASS_BinaryData) as IBinaryData;
end;
class function CoBinaryData.CreateRemote(const MachineName: string): IBinaryData;
begin
Result := CreateRemoteComObject(MachineName, CLASS_BinaryData) as IBinaryData;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -