⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcountdemo_tlb.pas

📁 这是不可多得的源代码
💻 PAS
字号:
unit PCountDemo_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 : 1.2
// File generated on 2003-12-1 23:58:48 from Type Library described below.

// ************************************************************************  //
// Type Lib: H:\Documents\hanei Documents\book\Inside VCL\InsideVCLDemos\Chap07\CountDemo\PCountDemo.tlb (1)
// LIBID: {568BA421-4243-4520-818E-9C061D6BDEA4}
// LCID: 0
// Helpfile: 
// HelpString: PCountDemo Library
// DepndLst: 
//   (1) v2.0 stdole, (D:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, 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
  PCountDemoMajorVersion = 1;
  PCountDemoMinorVersion = 0;

  LIBID_PCountDemo: TGUID = '{568BA421-4243-4520-818E-9C061D6BDEA4}';

  IID_ICountObjDemo: TGUID = '{D1210751-D986-4DB5-A3D6-159A24E88656}';
  CLASS_CountObjDemo: TGUID = '{E897CACF-59C7-47AA-9079-8AE013B53314}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  ICountObjDemo = interface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  CountObjDemo = ICountObjDemo;


// *********************************************************************//
// Interface: ICountObjDemo
// Flags:     (256) OleAutomation
// GUID:      {D1210751-D986-4DB5-A3D6-159A24E88656}
// *********************************************************************//
  ICountObjDemo = interface(IUnknown)
    ['{D1210751-D986-4DB5-A3D6-159A24E88656}']
    function CountMe(var iCount: Integer): HResult; stdcall;
  end;

// *********************************************************************//
// The Class CoCountObjDemo provides a Create and CreateRemote method to          
// create instances of the default interface ICountObjDemo exposed by              
// the CoClass CountObjDemo. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoCountObjDemo = class
    class function Create: ICountObjDemo;
    class function CreateRemote(const MachineName: string): ICountObjDemo;
  end;

implementation

uses ComObj;

class function CoCountObjDemo.Create: ICountObjDemo;
begin
  Result := CreateComObject(CLASS_CountObjDemo) as ICountObjDemo;
end;

class function CoCountObjDemo.CreateRemote(const MachineName: string): ICountObjDemo;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_CountObjDemo) as ICountObjDemo;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -