text stringlengths 14 6.51M |
|---|
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit NtUtils.Svc.Security;
interface
uses
Winapi.WinNt, Winapi.Svc, NtUtils.Exceptions, NtUtils.Security.Acl,
NtUtils.Security.Sid;
type
TAce = NtUtils.Security.Acl.TAce;
IAcl = NtUtils.Security.Acl.IAcl;
TAcl = NtUtils.Security.Acl.TAcl;
ISid = NtUtils.Security.Sid.ISid;
{ Query security }
// Security... |
unit uTestMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls,
JD.Weather.ApiSvr, Data.DB, Data.Win.ADODB;
type
TForm1 = class(TForm)
pTop: TPanel;
btnStop: ... |
program BridgeCrossing;
uses SwinGame, sgTypes;
const
SIDEWIDTH = 37;
SIDEHEIGHT = 288;
type
Alphabet = (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z);
CharacterData = record
StretchSpeed,length,x,y : Integer;
bmp: Bitmap;
//types : CharacterType;
end;
GameData = record
character : CharacterDat... |
unit pos_func;
interface
implementation
function Pos(const SubStr, Str: string): Int32;
var
I, LIterCnt, L, J: Int32;
begin
L := Length(SubStr);
LIterCnt := Length(Str) - L;
if (LIterCnt >= 0) and (L > 0) then
begin
for I := 0 to LIterCnt do
begin
J := 0;
while (J >= 0) and (J < L) do... |
unit u_xpl_xhcp;
{$ifdef fpc}
{$mode objfpc}{$H+}
{$endif}
interface
uses Classes
, SysUtils
, IdTelnetServer
, IdTelnet;
type
TXHCPDataAvailEvent = procedure (const ansType : integer; const Buffer: TStringList) of object;
{ TXHCPServer ===================================... |
unit Demo.Framework;
interface
uses
W3C.DOM4, W3C.HTML5, W3C.Canvas2DContext, W3C.CSSOM, W3C.SVG2;
type
TVector2i = record
X: Integer;
Y: Integer;
class function Create(const X, Y: Integer): TVector2i; static;
end;
TVector2f = record
X: Float;
Y: Float;
class function Create(const X,... |
{
GMGeoCode unit
ES: Contiene las classes necesarias para la geocodificación.
EN: Includes the necessary classes to geocoding.
=========================================================================
MODO DE USO/HOW TO USE
ES: poner el componente en el formulario, unirlo a un TGMMap y ejecutar el
método G... |
unit uStringUtils;
interface
function DurationToStr(Miliseconds: Int64): string;
implementation
uses SysUtils;
function DurationToStr(Miliseconds: Int64): string;
const
AproxDaysPerMonth = 30;
MonthsPerYear = 12;
var
Y, Mo, D, H, M, S, Ms: Int64;
YSt, MoSt, DSt, HSt, MSt, SSt: string;
begin
Ms ... |
unit exweb_import;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
exweb_type,UExWebType, DB, DBClient;
type
TExweb_import = class(TObject)
private
dll: THandle;
fDllFileName: string;
fParam: TStringList;
fTimeStart: Double;
... |
unit NtUtils.Registry.HKCU;
interface
uses
Winapi.WinNt, NtUtils.Exceptions, NtUtils.Objects, NtUtils.Registry;
// Get current user's hive path
function RtlxFormatCurrentUserKeyPath(out Path: String): TNtxStatus;
// Open a handle to the HKCU part of the registry
function RtlxOpenCurrentUserKey(out hxKey: IHandle;... |
UNIT Lists;
interface
CONST
MaxItems = 10;
TYPE
Item = ARRAY[1..MaxItems] OF REAL;
NodeRecPtr = ^NodeRec;
NodeRec = RECORD
Data : Item;
Next : NodeRecPtr;
END;
List = OBJECT
Node,
CurrNode,
TailNode : NodeRecPtr;
constructor Init;
destructor Done;
procedure AddIt... |
{ *********************************************************************** }
{ }
{ Delphi / Kylix Cross-Platform Runtime Library }
{ System Unit }
{ ... |
unit crcmodel;
{"Rocksoft^tm Model CRC Algorithm" for up to 32 bits}
interface
(*************************************************************************
DESCRIPTION : "Rocksoft^tm Model CRC Algorithm" for up to 32 bits
REQUIREMENTS : TP6/7, D1-D7/D9-D10/D12/D17-D18/D25S, FPC, VP
EXTERNA... |
unit uTranslateDataWinADOConst;
interface
uses
Windows,
Data.Win.ADOConst,
uTranslate;
Type
TTranslateDataWinADOConst = Class(TTranslate)
private
public
class procedure ChangeValues; override;
End;
Implementation
class procedure TTranslateDataWinADOConst.ChangeValues;
begin
SetResourceSt... |
unit dm.tcpip.tcp.client;
interface
uses
System.SysUtils,
System.Classes,
WinApi.Windows,
superobject,
org.utilities,
org.algorithms.heap,
org.tcpip.tcp,
org.tcpip.tcp.client;
type
TDMTCPClientSocket = class(TTCPClientSocket)
protected
procedure ParseProtocol; override;
procedure FillProt... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit ncaMethodList;
interface
uses
classes;
type
TMethodInfo = class
MethodName : string;
Method : TMethod;
end;
TMethodList = class(TList)
private
protected
function Get(Index: Integer): TMethodInfo;
procedure Put(Index: Integer; Item: TMethodInfo);
public
function assigned(... |
unit maindm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, sqldb, sqlite3conn, db, FileUtil;
type
{ TMainDM }
TMainDM = class(TDataModule)
AttributeDS: TDataSource;
AttributeQuery: TSQLQuery;
Connection: TSQLite3Connection;
ModelDS: TDataSource;
ModelQuery: TSQLQuery;
Project... |
unit Unit7;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, Buttons;
type
TForm7 = class(TForm)
Label1: TLabel;
BitBtn1: TBitBtn;
Timer1: TTimer;
Label2: TLabel;
lblCountDown: TLabel;
procedure Timer1Timer(Sender: TO... |
unit UnitConstants;
interface
const
//About program
PROGRAMNAME = 'PureRAT';
PROGRAMVERSION = 'v6.0';
PROGRAMAUTHOR = 'Wr #!d3';
PROGRAMPASSWORD = PROGRAMNAME + '²³¤¼½¾' + PROGRAMAUTHOR;
//Commands list
ACTIVECONNECTIONS = 'activeconnections';
ACTIVECONNECTIONSCLOSE = 'activeconnectionsclose';
... |
// Copyright 2021 Darian Miller, Licensed under Apache-2.0
// SPDX-License-Identifier: Apache-2.0
// More info: www.radprogrammer.com
unit radRTL.TOTP.Tests;
interface
uses
TestFramework;
type
TOTPTest = class(TTestCase)
published
procedure TestRFCVectors;
end;
implementation
uses... |
unit fDiagnoses;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
fPCEBase, StdCtrls, CheckLst, ORNet, ExtCtrls, Buttons, uPCE, ORFn,
ComCtrls, fPCEBaseMain, UBAGlobals, UBAConst, UCore, VA508AccessibilityManager,
ORCtrls, StrUtils;
type
TfrmDiagnoses = class(TfrmPCE... |
unit Laz_And_Controls_Events;
{$mode delphi}
interface
uses
Classes, SysUtils, And_jni, And_jni_Bridge, Laz_And_Controls, PlainWidget, bluetooth, bluetoothclientsocket,
bluetoothserversocket, spinner;
procedure Java_Event_pOnBluetoothEnabled(env: PJNIEnv; this: jobject; Obj: TObject);
procedure Java_Eve... |
{: Provides temporary file functions.
Last changed: $Date$
Revision: $Rev$
Author: $Author$
}
unit X2UtTempFile;
interface
function GetAppDataPath(): String;
function GetTempFile(const APrefix: String): String; overload;
function GetTempFile(const APath, AFileName, AExte... |
unit unSuperFastHash;
(*
A Delphi and assembly translation of the SuperFastHash function by
Paul Hsieh (http://www.azillionmonkeys.com/qed/hash.html).
I got the idea for translating it due to borland.public.delphi.language.basm.
See the full discussion at:
http://groups.google.com/group/borland.public... |
unit ASDTools;
{<|Модуль библиотеки ASDEngine|>}
{<|Дата создания 5.07.07|>}
{<|Автор Adler3D|>}
{<|e-mail : Adler3D@Mail.ru|>}
{<|Дата последнего изменения 5.07.07|>}
interface
uses ASDInterface, ASDClasses;
type
TTools = class(TASDObject, ITools)
public
constructor CreateEx; override;
function InitCalcN... |
unit UIConsts;
interface
uses Graphics, SysUtils;
type
TGetStrProc = procedure(const S: string) of object;
TIdentMapEntry = record
Value: Integer;
Name: String;
end;
TColorRec = record
const
SystemColor = $FF000000;
// System Colors (Windows only)
cSCROLLBAR = 0;
cBACKGROUND = 1;
... |
unit IWCompFlash;
interface
uses
Classes,
IWControl, IWFileReference, IWTypes, IWHTMLTag;
type
TIWFlashQuality = (fqLow, fqAutoLow, fqAutoHigh, fqMedium, fqHigh, fqBest);
TIWFlashScale = (fsDefault, fsShowAll, fsNoBorder, fsExactFit);
TIWFlashAlign = (faNone, faLeft, faTop, faRight, faBottom);
TIWFlashSA... |
unit psc11001;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ExtCtrls, ComCtrls, Db, Tmax_DataSetText,
OnEditBaseCtrl, OnEditStdCtrl, OnEditNumCtl, Grids, DBGrids, OnGrDBGrid,
OnLineLabel, OnInsaCommon, OnEditBtnCtrl, OnTmaxPersonEdit, OnDB... |
unit TechniSatAPI;
{$mode objfpc}{$H+}
{$MACRO ON}
{____________________________________________________________
| _______________________________________________________ |
| | | |
| | Remote API for TechniSat based devices | |
| | (c) 2019 Alexan... |
unit Frame.NodeTree;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, VirtualTrees,
GMGlobals, Generics.Collections, BaseNodeReader, Vcl.Menus, GMConst, ActiveX, Vcl.ImgList,
cxGraphics, cxContro... |
unit BrickCamp.Repositories.IProduct;
interface
uses
System.JSON,
BrickCamp.Model.TProduct;
type
IProductRepository = interface(IInterface)
['{0AE577BE-875B-4C1D-B4D7-717F20B73480}']
function GetOne(const Id: Integer): TProduct;
function GetList: TJSONArray;
procedure Insert(const Product: TPro... |
{******************************************}
{ TeeChart Map Series }
{ Copyright (c) 2000-2004 by David Berneda }
{ All Rights Reserved }
{******************************************}
unit TeeMapSeries;
{$I TeeDefs.inc}
interface
Uses {$IFNDEF LINUX}
Windows, Messages,
... |
{$mode objfpc}{$H+}{$J-}
uses SysUtils, Generics.Collections;
type
TApple = class
Name: string;
end;
TAppleDictionary = specialize TDictionary<string, TApple>;
var
Apples: TAppleDictionary;
A, FoundA: TApple;
ApplePair: TAppleDictionary.TDictionaryPair;
AppleKey: string;
begin
Apples := TAppleDic... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls,
Redis.Commons, Redis.Client, Redis.NetLib.INDY, Redis.Values
;
type
TForm1 = class(TForm)
Button1: TButton;
... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ Web server application components }
{ }
{ Copyright(c) 1995-2018 Embar... |
unit Code02.Clarc1984.DaylightTimeZone;
interface
uses
System.json;
{
@theme: Delphi Challenge
@subject: #02 Daylight Time Zone
@author: Bogdan Polak
@date: 2020-05-16 21:00
}
{
Zadaniem jest wydobycie z treści strony https://www.timeanddate.com/
informacji o tym czy w podanej strefie czasowej wykonu... |
unit uHttpDownloader;
interface
uses
Windows, Messages, SysUtils, Variants, Classes,
IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdHTTP, IdURI,
math, uFileBlockStream;
Const
_1seg = 1/24/3600;
_500ms = 1/24/3600/2;
type
THttpDownloaderProgress = procedure (Sender: TObject; aPosition,... |
unit TestMapReduce;
{
Delphi DUnit Test Case
----------------------
This unit contains a skeleton test case class generated by the Test Case Wizard.
Modify the generated code to correctly setup and call the methods from the unit
being tested.
}
interface
uses
TestFramework, SysUtils, MapReduce;
type
... |
unit Kafka.FMX.Form.Main;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes,
System.Variants, System.Actions, System.DateUtils, System.SyncObjs,
System.Generics.Collections, System.Rtti,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX... |
unit ASDLog;
{<|Модуль библиотеки ASDEngine|>}
{<|Дата создания 31.05.07|>}
{<|Автор Adler3D|>}
{<|e-mail : Adler3D@Mail.ru|>}
{<|Дата последнего изменения 31.05.07|>}
interface
uses
Windows, ASDUtils, ASDType,
ASDInterface;
type
TLog = class(TASDObject, ILog)
private
FTimeStamp: Boolean; // Time Stamp
... |
unit PeriodicPublishObj;
interface
uses
Windows, System.Classes, System.SysUtils,
Winapi.Messages, Vcl.Dialogs, System.UITypes, System.StrUtils,
Vcl.Forms, Vcl.ExtCtrls, CodeSiteLogging;
type
TPublishProc = procedure(topic, payload: string; QoS: Integer; Retain: Boolean) of object;
TBUBFuncsType = (pbfRan... |
{ Fonctions de chaines pour Mister Patate }
unit MrpStr;
interface
{ Convertit une valeur en chaine }
function Str (Valeur: LongInt; NbrChiffre: Byte): String;
{ Convertit une valeur en chaine en laissant des espaces }
function StrE (Valeur: LongInt; NbrChiffre: Byte): String;
{ Convertit une chaine en... |
unit BigInt;
interface
uses
System.SysUtils;
const
numlen = 102;
{
везде в циклах используются переменные типа integer,
если numlen > maxint, нужно использовать переменные типа word
}
type
number = array [1..numlen] of byte;
{
переменной а типа number представлено число SUM a[i]*10^(i-l)
Обнуление... |
UNIT StudentUnit;
INTERFACE
USES PersonUnit;
TYPE
Student = ^StudentObj;
StudentObj = OBJECT(PersonObj)
PUBLIC
CONSTRUCTOR Init(name: STRING);
CONSTRUCTOR Init2(name: STRING; mood: MoodType);
DESTRUCTOR Done;
END; (* PERSON *)
IMPLEMENTATION
FUNCTION MoodTypeTo... |
{-Test prog Blowfish encr/decr speed, we 11.2004}
program t_bspeed;
{$i STD.INC}
{$ifdef APPCONS}
{$apptype console}
{$endif}
{$ifndef FPC}
{$N+}
{$endif}
{$ifdef X_Opt}
{$x+}
{$endif}
uses
{$ifdef WINCRT}
wincrt,
{$endif}
BF_Base, hrtimer;
const
LOOPS = 100;
var
... |
unit MapParallel;
interface
uses
System.SysUtils, System.Generics.Collections;
type
TIndexed<T> = record
private
FIndex: Integer;
FValue: T;
public
constructor Create(AIndex: Integer; AValue: T);
end;
TListWriter<T> = class
public
class procedure AddToThreadList(AItem: T; AThreadList:... |
unit ParametroUsuarioDataUn;
interface
uses
SysUtils, Classes, FMTBcd, DB, Provider, osSQLDataSetProvider, SqlExpr,
osCustomDataSetProvider, osUtils, osSQLDataSet;
type
TParametroUsuarioData = class(TDataModule)
MasterDataSet: TosSQLDataset;
MasterProvider: TosSQLDataSetProvider;
Master... |
unit uEditorLspSettings;
{$mode objfpc}{$H+}
interface
uses
Classes, Graphics, SysUtils, Forms,
SynEdit, SynEditMiscClasses, SynEditMarkupBracket, SynEditMarks,
LCSynEdit, SynLCHighlighter;
const
MAX_NIVEL_IDENTACAO = 10;
resourcestring
rsUnknown = 'Desconhecido';
rsDescNivelIdentacao =... |
unit DelphiAdapter;
interface
type TAdapter = class
procedure addDatum(aDatum: Pointer); virtual; stdcall; abstract;
procedure startServer; virtual; stdcall; abstract;
function startServerThread(): Boolean; virtual; stdcall; abstract;
procedure sendChangedData; virtual; stdcall; abstract;
... |
unit uPrintException;
interface
uses
sysutils;
type
eNexPrinterNotFound = class(exception)
PrinterName: string;
constructor Create(const aPrinterName: string);
end;
eNexTipoImpressaoNotFound = class(exception)
TipoImpressao: string;
constructor Create(const aTipoImpressao: strin... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{ : GLSRGBE<p>
<b>History : </b><font size=-1><ul>
<li>17/11/14 - PW - Renamed from RGBE.pas to GLSRGBE.pas
<li>15/06/10 - Yar - Fixes for Linux x64
<li>20/01/10 - Yar - Creation
</ul><p>
}
unit GLSRGBE;
interface
{$I GLSc... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
//////////////////////////////////////////////////
// Universal Data Access Components
// Copyright © 1998-2020 Devart. All right reserved.
// ReportBuilder support
// Based on Digital Metaphors Corporation's demos
//////////////////////////////////////////////////
unit daUniDAC;
interface
uses
SysUtils, // S... |
// Mini Sistema para calculr la Transformada de Fourier de una Imagen
// mediante el método de la FFT-2D
//
// Autor. Manuel Martin Ortiz
// FCC - BUAP
//
// Curso de "Procesamiento Digital de Imágenes"
//
// Ultima Revisión : 6 noviembre 2007
// Versión : 0.0.3
unit UFourier;
interface
uses
Window... |
{===================================================================
NPC Schematics 2016
Warming Up: Wembo dan Hobi Berdendang
by Baharuddin Aziz
September 25, 2016
===================================================================}
program wembo_dan_hobi_berdendang;
var
// input
n : integer; ... |
unit CardPiles;
{ Author: Kees Hemerik
Version history:
0.4 d.d. 20080318
- Added: invariant for TDeckPile, TDeckPile.Acceptable
0.3 d.d. 20080314
- Added: function IntToSuit
0.2 d.d. 20080310
- Corrected: TTableauPile.Acceptable; old version did not accept facedown
cards.
- Ad... |
unit Security.Permission;
interface
uses
System.SysUtils, System.Classes, Vcl.ExtCtrls, System.UITypes, Vcl.StdCtrls, Vcl.Forms,
Security.Permission.Interfaces,
Security.Permission.View
;
type
TPermissionNotifyEvent = Security.Permission.Interfaces.TPermissionNotifyEvent;
TResultNotifyEvent ... |
unit srvrdm;
interface
{ This DataModule is the COM object that the TRemoteServer component will
connect to. Each remote connection gets a new DataModule that is used
during that clients session. When using a TDatabase on a Remote Data
Module, be sure to set it's HandleShared property to True. If you use
a... |
unit CSettlementSheetPrintUnit;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Db, StdCtrls, Grids, DBGrids, DBTables, Wwdbigrd, Wwdbgrid, Buttons,
RPCanvas, RPrinter, RPDefine, RPBase, RPFiler, Mask;
type
TCertiorariSettlementForm = class(TForm)
SortSettlementSh... |
unit DMHelper.MainScreen.View;
interface
uses
System.SysUtils,
System.Types,
System.UITypes,
System.Classes,
System.Variants,
FMX.Types,
FMX.Controls,
FMX.Forms,
FMX.Graphics,
FMX.Dialogs,
FMX.Layouts,
FMX.Objects,
FMX.Controls.Presentation,
FMX.StdCtrls;
type
TfrmMain = class(TForm)
... |
{ -----------------------------------------------------------------------------
Unit Name: ufraQuickViewer
Author: 黄伟
Date: 07-六月-2018
Purpose: 观测数据速览显示单元
本单元通过检查每只仪器最近两次观测数据变化、月变化,将超过限值的仪器及其
数据显示出来,同时统计数据增大和减小的数量,了解当前趋势。
History:
2018-06-14 增加了显示数据增量的功能,目前尚不能指定日期,但可以过滤掉微小
变化。
-----------... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ XML Document Support }
{ }
{ Copyright(c) 1995-2011 Embar... |
unit Devices.TR101;
interface
uses Windows, GMConst, Devices.Modbus.ReqCreatorBase, GMGlobals;
type
TTR101ReqCreator = class(TModbusRTUDevReqCreator)
protected
function PrepareCommand(var prmIds: TChannelIds; var Val: double): bool; override;
public
procedure AddRequests(); override;
end;
const
... |
{
FastCopyFile
By SiZiOUS 2014, based on the work by Davy Landman
www.sizious.com - @sizious - fb.com/sizious - sizious (at) gmail (dot) com
This unit was designed to copy a file using the Windows API.
It's faster than using the (old) BlockRead/Write and TFileStream methods.
Every destination file will... |
unit record_constructor_6;
interface
implementation
type
TRec = record
FData: Int32;
constructor Init;
destructor Final;
end;
var G: Int32;
constructor TRec.Init;
begin
FData := 12;
end;
destructor TRec.Final;
begin
G := 13;
end;
function GetRec: TRec;
begin
Assert(Result.FData = 12);
end;... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{: GLSDLContext<p>
SDL specific Context and Viewer.<p>
NOTA: SDL notifies use of context destruction *after* it happened, this prevents
clean release of allocated stuff and requires a temporary switch to
"ignore Ope... |
{ intrinsics }
program Intrinsics;
begin
writeln('sqrt(9.0) = ', sqrt(9.0));
writeln('sqrt(9) = ', sqrt(9));
writeln('abs(-5.0) = ', abs(-5.0));
writeln('abs(-5) = ', abs(-5));
end.
|
unit BrickCamp.Resources.TUser;
interface
uses
System.JSON,
System.Classes,
System.SysUtils,
Spring.Container.Common,
Spring.Container,
MARS.Core.Registry,
MARS.Core.Attributes,
MARS.Core.MediaType,
MARS.Core.JSON,
MARS.Core.MessageBodyWriters,
MARS.Core.MessageBodyReaders,
BrickCamp.Repositor... |
{$mode objfpc}
unit Asm_Converter;
interface
function HexToWord(b : string; var c : integer) : word;
function StrToWord(s : string; var c : integer; hex : boolean = false) : Word;
function WordToHex(b : word) : string;
implementation
function HexCharToByte(c : char) : byte;
begin
HexCharToByte := 0;
case c of
'0... |
unit untCadastroUsuario;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, Vcl.Buttons,
Vcl.Mask, Vcl.DBCtrls, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Param, FireDAC.Sta... |
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
... |
unit FC.Trade.ChooseExpertsDialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufmDialogOKCancel_B, ActnList, StdCtrls, ExtendControls, ExtCtrls,
Buttons, ComCtrls,FC.Definitions, ImgList, ToolWin, VirtualTrees,
StockChart.Definitions;
type
TfmSelectEx... |
unit Unit3_3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, Menus;
type
TForm1 = class(TForm)
GroupBox1: TGroupBox;
RadioGroup1: TRadioGroup;
ColorDialog1: TColorDialog;
FontDialog1: TFontDialog;
Memo1: TMemo;
Butt... |
unit xSortInfo;
interface
uses System.Classes, system.SysUtils, xQuestionInfo, xQuestionAction, xFunction;
type
TSortInfo = class
private
FSortid : Integer ;
FSortname : String ;
FSortremark : String ;
FQuestionList: TStringList;
FQuestionAction : TQuestionAction;... |
unit Unit2;
interface
type
PElem = ^TElem;
TElem = record
info: integer;
next: PElem;
end;
// создать список из одного элемента
procedure CreateList(var ListN, ListK: PElem; r: integer);
// добавить новый элемент перед первым
procedure AddFirst(var ListN: PElem; ListK: PElem; r: integer);
// добави... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ SOAP Support }
{ }
{ Copyright(c) 1995-2018 Embar... |
unit MVCInterfaces;
interface
// Aqui declaramos a Interfaces que por definição são Classes Abstratas
// IModel faz sentido pois obriga a criar os metodos
// mas não entendi a necessidade de IView e IControle
type
TModeloMudou = procedure of object;
IModel = interface
['{9E0A6ECC-2A12-461F-AD82-0319DF... |
unit adot.Win.Log;
interface
uses
Winapi.Windows,
adot.Win.Tools,
adot.Tools,
adot.Log,
adot.Strings,
System.SysUtils,
System.SyncObjs,
System.Math,
System.Classes,
System.Generics.Collections,
System.Generics.Defaults;
type
// buffered + asynchronous, thread-safe.
// most general class fo... |
unit ADAPT.UnitTests.Generics.Collections;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpcunit, testutils, testregistry;
type
TAdaptUnitTestGenericsArray = class(TTestCase)
protected
procedure SetUp; override;
procedure TearDown; override;
published
procedure TestHookUp;
end;
imple... |
unit MOSQUITTO;
interface
uses Windows;
const LIBMOSQUITTO_MAJOR = 1;
const LIBMOSQUITTO_MINOR = 4;
const LIBMOSQUITTO_REVISION = 5;
const LIBMOSQUITTO_VERSION_NUMBER = (LIBMOSQUITTO_MAJOR*1000000+LIBMOSQUITTO_MINOR*1000+LIBMOSQUITTO_REVISION);
const MOSQ_LOG_NONE = $00;
const MOSQ_LOG_INFO = $01;
const MOSQ_LOG_NO... |
{===============================================================================
Copyright(c) 2014, 北京北研兴电力仪表有限责任公司
All rights reserved.
学员信息单元
+ TStudentInfo 学员信息类
===============================================================================}
unit xStudentInfo;
interface
uses
System.Cla... |
{
"Window Handle Pool" - Copyright (c) Danijel Tkalcec
@html(<br>)
This unit implements a pool of Window Handles, associated with their threads.
Sicne creating Windows Handles takes a considerable ammount of processing time,
using a Window handle pool will speed things up.
@exclude
}
unit rtcHWndPool;
{$... |
unit form_AdvancedCopy;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Spin64, frame_Location, ComCtrls, zlibex;
type
Tfrm_AdvancedCopy = class(TForm)
pcMain: TPageControl;
tsSource: TTabSheet;
Label2: TLabel;
tsDestinat... |
unit SLP.App;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses
Windows, SysUtils,
//JPL.Strings,
//JPL.Conversion,
{$IFDEF DEBUG}JPL.TimeLogger,{$ENDIF}
JPL.Console, JPL.ConsoleApp, JPL.CmdLineParser, JPL.Strings, JPL.TStr, JPL.Conversion, JPL.Win.SimpleTimer, JPL.DateTime,
//JPL.Win.SimpleTimer,
... |
// *******************************************************
//
// playIoT DataSnap Common
//
// Copyright(c) 2016 playIoT.
//
// jsf3rd@playiot.biz
//
// Update 2016. 04. 22
//
// *******************************************************
unit JdcGlobal.DSCommon;
interface
uses
Classes, SysUtils, Fire... |
unit fGMV_NewTemplate;
{
================================================================================
*
* Application: Vitals
* Revision: $Revision: 1 $ $Modtime: 12/20/07 12:43p $
* Developer: doma.user@domain.ext
* Site: Hines OIFO
*
* Description: Create form for a... |
unit iaDemo.chakracore.SimpleExec.MainForm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls,
Vcl.Themes,
ChakraCoreClasses; //replace project search path for your location of source files... |
unit ncBaseWebApi;
{
ResourceString: Dario 12/03/13
}
interface
uses Dialogs, SysUtils, Winsock, Windows, ExtActns, ActiveX, UrlMon, Automation, EmbeddedWB, SHFolder, Classes, Forms, idHttp;
type
TncDownloadUrl = class ( TThread )
protected
FRes: Integer;
FWB: TEmbeddedWB;
FURL,
FFileName,
... |
{
Лабораторная работа № 1 Множества и операции над ними
Написать программу, в которой для конечных упорядоченных множеств реализовать все основные операции (, , , \) с помощью алгоритма типа слияния (по материалам лекции 1). Допустима организация множеств в виде списка или в виде массива.
Работа программы должна пр... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC GUIx Forms memo }
{ }
{ Copyright(c) 2004-2018 Embar... |
(**
This module contains a class / interface for creating and managing a version RC file for the project.
@Author David Hoyle
@Version 1.0
@Date 07 Jan 2018
**)
Unit ITHelper.VersionManager;
Interface
Uses
ToolsAPI,
ITHelper.Interfaces;
Type
(** A class / interface to manage the create a ver... |
unit U_TContact;
interface
uses System.Classes;
type
TMobileOperator = Class
Name:string[30];
End;
TMobile = Class
AreaCode:string[10];
Number:string[11];
mOperator:TMobileOperator;
End;
TTelephoneOperator = Class
Name:string[30];
End;
T... |
unit u_xpl_processor;
{$ifdef fpc}
{$mode objfpc}{$H+}
{$endif}
interface
uses Classes
, SysUtils
, u_xpl_address
, u_xpl_custom_message
;
type // TxPLProcessor =========================================================
TxPLProcessor = class(TObject)
private
public
function... |
unit IETFLanguageCodeServices;
interface
uses
SysUtils, Classes,
StringSupport,
AdvObjects, AdvObjectLists, AdvFiles, AdvTextExtractors, AdvStringIntegerMatches,
FHIRTypes, FHIRResources, TerminologyServices, DateAndTime;
type
TIETFLanguageCodeConcept = class (TCodeSystemProviderContext)
private
code... |
{ ****************************************************************************** }
{ * distortion/Undistortion Rasterization, create by.qq600585 * }
{ * https://zpascal.net * }
{ * https://github.com/PassByYou888/zAI ... |
// This is a simple sample of using a iprovider interface. Since
// IPRovider manages his own resultset, don't forget to set
// unidirectional property of tquery to true. Otherwize you will
// have two full resultsets in memory!
// aducom software
// (c) 2007
unit Sample07Main;
interface
uses
Windows, Me... |
{-------------------------------------------------------------------------------
HtmlViewer12TestForm.pas, (C) 03/2011 by Bernd Gabriel, all rights reserved
mailto: info@fast-function-factory.de
-------------------------------------------------------------------------------}
unit HtmlViewer12TestForm;
interface
uses... |
{********************************************}
{ TeeChart Pro Charting Library }
{ Copyright (c) 1995-2004 by David Berneda }
{ All Rights Reserved }
{********************************************}
unit TeeSourceEdit;
{$I TeeDefs.inc}
interface
uses {$IFNDEF LINUX}
Windows, M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.