?? typecomserver_tlb.~pas
字號:
unit TypeComServer_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 $
// File generated on 2001-8-17 22:23:20 from Type Library described below.
// ************************************************************************ //
// Type Lib: G:\book_delphi\Delphi6組件開發\第二章 COM組件\S2_4\dll\TypeComServer.tlb (1)
// LIBID: {BB8900A7-AC2D-437C-96BF-C747EEA14918}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINNT\System32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
interface
uses ActiveX, Classes, Graphics, StdVCL, Variants, Windows;
// *********************************************************************//
// 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
TypeComServerMajorVersion = 1;
TypeComServerMinorVersion = 0;
LIBID_TypeComServer: TGUID = '{BB8900A7-AC2D-437C-96BF-C747EEA14918}';
IID_ITypeDllServer: TGUID = '{56F87051-CD43-49C5-94BE-465DA804F9AE}';
CLASS_TypeDllServer: TGUID = '{1AC0EEE3-D599-45A5-9D29-5AE87029812E}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
ITypeDllServer = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
TypeDllServer = ITypeDllServer;
// *********************************************************************//
// Interface: ITypeDllServer
// Flags: (256) OleAutomation
// GUID: {56F87051-CD43-49C5-94BE-465DA804F9AE}
// *********************************************************************//
ITypeDllServer = interface(IUnknown)
['{56F87051-CD43-49C5-94BE-465DA804F9AE}']
procedure SetName(const NewName: WideString); stdcall;
function GetName: WideString; stdcall;
function GetSalary(Bonus: Single; BaseSalary: Single): Single; stdcall;
end;
// *********************************************************************//
// The Class CoTypeDllServer provides a Create and CreateRemote method to
// create instances of the default interface ITypeDllServer exposed by
// the CoClass TypeDllServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoTypeDllServer = class
class function Create: ITypeDllServer;
class function CreateRemote(const MachineName: string): ITypeDllServer;
end;
implementation
uses ComObj;
class function CoTypeDllServer.Create: ITypeDllServer;
begin
Result := CreateComObject(CLASS_TypeDllServer) as ITypeDllServer;
end;
class function CoTypeDllServer.CreateRemote(const MachineName: string): ITypeDllServer;
begin
Result := CreateRemoteComObject(MachineName, CLASS_TypeDllServer) as ITypeDllServer;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -