home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
Chip_1999-03_cd.bin
/
zkuste
/
delphi
/
INFO
/
DI9802TS.ZIP
/
Demo_TLB.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-08-14
|
2KB
|
71 lines
unit Demo_TLB;
{ This file contains pascal declarations imported from a type library.
This file will be written during each import or refresh of the type
library editor. Changes to this file will be discarded during the
refresh process. }
{ Demo Library }
{ Version 1.0 }
interface
uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
const
LIBID_Demo: TGUID = '{10AD1EA0-FDEA-11D0-9D6A-00A02494592C}';
const
{ Component class GUIDs }
Class_MyObj: TGUID = '{10AD1EA2-FDEA-11D0-9D6A-00A02494592C}';
type
{ Forward declarations: Interfaces }
IMyObj = interface;
IMyObjDisp = dispinterface;
{ Forward declarations: CoClasses }
MyObj = IMyObj;
{ Dispatch interface for MyObj Object }
IMyObj = interface(IDispatch)
['{10AD1EA1-FDEA-11D0-9D6A-00A02494592C}']
procedure ShowCelcius(DegreesF: Integer); safecall;
end;
{ DispInterface declaration for Dual Interface IMyObj }
IMyObjDisp = dispinterface
['{10AD1EA1-FDEA-11D0-9D6A-00A02494592C}']
procedure ShowCelcius(DegreesF: Integer); dispid 1;
end;
{ MyObjObject }
CoMyObj = class
class function Create: IMyObj;
class function CreateRemote(const MachineName: string): IMyObj;
end;
implementation
uses ComObj;
class function CoMyObj.Create: IMyObj;
begin
Result := CreateComObject(Class_MyObj) as IMyObj;
end;
class function CoMyObj.CreateRemote(const MachineName: string): IMyObj;
begin
Result := CreateRemoteComObject(MachineName, Class_MyObj) as IMyObj;
end;
end.