Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ComPObject1.pas
Package: delphi.rar [view]
Upload User: fh681027
Upload Date: 2022-07-23
Package Size: 1959k
Code Size: 1k
Category:
Delphi VCL
Development Platform:
Delphi
- unit ComPObject1;
- interface
- uses
- ActiveX, MtsObj, Mtx, ComObj, ComPlus1_TLB, StdVcl;
- type
- TComPlus1Object = class(TMtsAutoObject, IComPlus1Object)
- private
- fValue: Integer;
- protected
- function AsString: WideString; safecall;
- function Get_Value: Integer; safecall;
- procedure Increase(Amount: Integer); safecall;
- procedure Set_Value(Value: Integer); safecall;
- end;
- implementation
- uses ComServ, SysUtils;
- function TComPlus1Object.AsString: WideString;
- begin
- Result := Format ('%n', [fValue*1.0]);
- end;
- function TComPlus1Object.Get_Value: Integer;
- begin
- Result := fValue;
- end;
- procedure TComPlus1Object.Increase(Amount: Integer);
- begin
- Inc (fValue, Amount);
- end;
- procedure TComPlus1Object.Set_Value(Value: Integer);
- begin
- fValue := Value;
- end;
- initialization
- TAutoObjectFactory.Create(ComServer, TComPlus1Object, Class_ComPlus1Object,
- ciMultiInstance, tmApartment);
- end.