text
stringlengths
14
6.51M
{ A unit to watch the heap, i.e. check if all pointers that were allocated are released again. It is meant as a debugging help to detect memory leaks. Use it in the main program before all other units. When, at the end of the program, some pointers that were allocated, have not been released, the unit writes...
{----------------------------------------------------------------------------- Unit Name: Author: Roman Purpose: Базовый класс для всех трейдеров. Реализует интерфейс IStockTrader History: -----------------------------------------------------------------------------} unit FC.Trade.Trader.Base; {$I Compiler.in...
UNIT ColrCtrl; (* -------------------------------------------------------------- Adds a pop-up palette control to any 16 color VGA program Allows 256K color choices. created: 2/2/89 by Art Steinmetz / CIS: 76044,3204 Use at will but please leave my name in. Thanks. Intructions: Call PaletteContr...
{$mode objfpc} {$m+} program Queue; type Node = record val : integer; prev : ^Node; end; LinkedListQueue = class private first : ^Node; last : ^Node; public function pop(): integer; procedure push(i : integer); end; function LinkedListQueue.pop() : integer; begin if first <> ni...
{ *************************************************************************** } { } { Delphi and Kylix Cross-Platform Visual Component Library } { Internet Application Runtime } ...
program hanoi1; procedure hanoi(num, src, dst: integer); { num is a quantity of discs } begin if num = 1 then begin writeln('Move a top disk from ', src, ' to ', dst); exit; end; hanoi(num-1, src, 6-src-dst); hanoi(1, src, dst); hanoi(num-1, 6-src-dst, dst); end; begin hano...
unit ProjectConst; interface resourcestring sMainFormCaption = 'Database'; sSaveAllActionCaption = 'Перезаписать уже имеющиеся'; sSkipAllActionCaption = 'Пропустить уже имеющиеся'; sRecommendedReplacement = 'Recommended Replacement'; sOperatingTemperatureRange = 'Operating Temperature Range'; sDoDescr...
{*******************************************************} { } { Delphi DBX Framework } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit Support.Phison; interface uses SysUtils, Support, Device.SMART.List; type TPhisonNSTSupport = class sealed(TNSTSupport) private InterpretingSMARTValueList: TSMARTValueList; function GetSemiSupport: TSupportStatus; function GetTotalWrite: TTotalWrite; function IsHasSATASSDString: Boolean...
{ 25/05/2007 11:17:03 (GMT+1:00) > [Akadamia] checked in } { 25/05/2007 10:37:27 (GMT+1:00) > [Akadamia] checked out /} { 14/02/2007 08:32:29 (GMT+0:00) > [Akadamia] checked in } { 14/02/2007 08:32:17 (GMT+0:00) > [Akadamia] checked out /} { 12/02/2007 10:16:44 (GMT+0:00) > [Akadamia] checked in } { 08/02/2007 14...
unit ui200; interface uses Contnrs, MVCInterfaces,uRegistroEmpresaContabil, uI100 , uNumeroCampo, uTipoDetalhamento, uContaContabil; type TI200 = class(TRegistroEmpresaContabil) private fID : Integer; FOnModeloMudou : TModeloMudou; fNumeroCampo ...
unit UFrmPaciente; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, UFrmCRUD, Menus, Buttons, StdCtrls, ExtCtrls , UPACIENTE , UUtilitarios , URegraCRUDPaciente, Mask ; type TfrmCadPaciente = class(TFrmCRUD) gbCadastro: TGroupBox; edCodSus: TLa...
program ReadFile; type states = (start, slash, slashSlash, slashStar, slashStarStar, slashStarStarSlash, quote, quoteBackslash); var input, outputBuffer: string; c: char; currentState: states; function transitionFunction(state: states; c: char): states; begin transitionFunction := state; case s...
{***********************************<_INFO>************************************} { <Проект> Медиа-сервер } { } { <Область> 16:Медиа-контроль ...
unit UConexao; interface uses IniFiles, SysUtils, Forms, SqlExpr, Dialogs; type TConexao = class private Path: string; Host: string; Porta: integer; Database: string; Password: string; User: string; VendorLib: string; LibraryC: string; GetDriver: string...
{ ******************************************************* Threading utilities for Delphi 2009 and above Utilidad para programación concurrente. ******************************************************* 2012-2015 Ángel Fernández Pineda. Madrid. Spain. This work is licensed under the Creative Commons Attri...
unit xVectorMap; interface uses Classes, SysUtils, xVectorLine, XMLIntf, XMLDoc,Variants, FMX.Graphics, System.UITypes, system.Types, FMX.Types, FMX.Controls, FMX.StdCtrls, FMX.Objects, xVectorType, xVectorArc; type TVectorMap = class private FVectorList: TStringList; FOwner : TComponent;...
unit MainFrm; {$WARN UNIT_PLATFORM OFF} interface uses Classes, ComCtrls, Controls, Dialogs, Forms, Mask, StdCtrls, XMLDOM, XMLIntf, DataBindingHintsXML, XMLDataBindingGenerator { cxButtonEdit, cxContainer, cxControls, cxEdit, cxLookAndFeels, cxMaskEdit, c...
unit SLABHIDtoUART; interface uses windows, classes; type HID_UART_STATUS = integer; ///////////////////////////////////////////////////////////////////////////// // Return Code Definitions ///////////////////////////////////////////////////////////////////////////// const // Return Codes HID_UART_SUCCESS = $00...
{Record access...also nested records} program HelloWorld; type rec1 = record a : integer; b : integer end; rec2 = record a: integer; b: integer; r : rec1 end; var i : integer; r1 : rec1; r2 : rec2; begin i := r1.b; i := r2.r.a end.
unit JAPalette; {$mode objfpc}{$H+} {$i JA.inc} {This is for managing the Amiga's Colour Registers. Each register is an entry of a Palette. OCS Amiga's are limited to 32 Colour Registers.} interface uses sysutils, math, {Amiga} Exec, Intuition, AGraphics, Utility, picasso96api, {JAE} JATypes, JA...
unit uDataRecord; interface uses SysUtils, Classes, Variants, DB; type TDataItem = class(TObject) public Modified: Variant; Data: Variant; end; TDataRecord = class private FList: TStrings; procedure ClearList; function FindFieldData(const FieldName: string): TDataItem;...
unit uSupplyServices; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, ZDataset, ZSequence, ZSqlUpdate, Forms, Controls, Graphics, Dialogs, StdCtrls, ActnList, ExtCtrls, Buttons, DbCtrls, DBGrids, uBaseDbForm, db, ZAbstractDataset; type { TfrmSupplyServices } TfrmSupplyServices = class(Tb...
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+} {$M 1024,0,0} { by Behdad Esfahbod Algorithmic Problems Book August '1999 Problem 5 O(LgN) Trivial Method } program WriteANumberWithLetters; const MaxN = 9999; var N : Integer; const Yek : array [1 .. 9] of string[15] = ('yek','do','se','chahaar','pan...
{* *************************************************************************************** \Program Upload code for microcontroller - Version 1.0 \brief Upload code with input parameters to microcontroller ESP8266 WEMOS D1 \author Anh Tu Nguyen \date 06.01.2020 \note (C) Copyright imess Gmb...
unit vr_SysUtils; {$mode delphi}{$H+} interface uses SysUtils, types; procedure LockVar; inline; procedure UnLockVar; inline; function LockedVarCompare(const ATarget: Pointer; const AComparend: Pointer): Integer; function LockedVarIsNil(const ATarget: Pointer): Boolean; //? call TObject.Create //pr...
unit uAudioThumb; {$mode objfpc}{$H+} interface uses Classes, SysUtils; implementation uses Graphics, Types, DCClassesUtf8, uThumbnails, uMasks, uGraphics; var MaskList: TMaskList = nil; type TFrameHeader = packed record ID: array [1..4] of AnsiChar; Size: Integer; Flags: UInt16; end; TT...
// // This unit is part of the GLScene Project, http://glscene.org // { : GLSceneViewerToolbar<p> Added GLScene's toolbar to Delphi IDE.<p> <b>History : </b><font size=-1><ul> <li>21/11/10 - Yar - Creation </ul></font> } unit GLSceneToolbar; interface implementation uses Classes, S...
object frmMain: TfrmMain Left = 0 Top = 0 BorderStyle = bsNone Caption = 'frmMain' ClientHeight = 262 ClientWidth = 358 Color = 66051 Constraints.MinHeight = 120 Constraints.MinWidth = 320 Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Taho...
Program PasswordTest; Const saved='1234'; Var bool:boolean; Function checkpassword():boolean; Var password:string; tries:integer; check:boolean; Begin tries:=0; check:= false; Repeat Write ('Enter your password : '); Readln (password); tries:= (tries + 1); If (password = saved) t...
unit u_DMWeight; interface uses System.SysUtils, System.Classes, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Stan.ExprFuncs, FireDAC.Phys.SQLiteDef, FireDAC.VCLUI.Wait, FireDAC.St...
unit HGM.GraphQL.Fields; interface uses System.Generics.Collections, HGM.GraphQL.Types; type TGraphFields = class; TGraphField = class private FArgs: TGraphArgList; FName: string; FSubFields: TGraphFields; procedure SetName(const Value: string); public function ToString: string; reintr...
unit Model.Register.Base; interface uses System.SysUtils, System.Classes, Model.Base, Model.Connection, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, Data.DB, FireDAC.Comp.DataSet, FireDAC...
unit Loading; interface uses System.SysUtils, System.Classes, FMX.Types, FMX.Controls, System.Types, FMX.Objects, FMX.StdCtrls, System.UITypes, FMX.Graphics, FMX.Dialogs, System.Math, System.Math.Vectors, FMX.Edit, FMX.Layouts, FMX.Effects, ColorClass, FMX.Ani, FMX.MultiResBitmap; type TLoadingIconType = (...
unit AsciiCheck; interface uses SysUtils, Character; type TStringHelper = class public function IsAscii(const PathToValidate: String): Boolean; end; var StringHelper: TStringHelper; implementation {$R-} function TStringHelper.IsAscii(const PathToValidate: String): Boolean; var CurrentCharacter: C...
(* VectorClass: MM, 2020-06-05 *) (* ------ *) (* Simple Class to store Vectors in an IntArray *) (* ========================================================================= *) ...
(*!------------------------------------------------------------ * Fano CLI Application (https://fanoframework.github.io) * * @link https://github.com/fanoframework/fano-cli * @copyright Copyright (c) 2018 Zamrony P. Juhara * @license https://github.com/fanoframework/fano-cli/blob/master/LICENSE (MIT) *----...
{*******************************************************} { } { Delphi Runtime Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
program PARSTRAD; (* Parse afs:TRADE holdings report into lotus Readable file *) {$M 20000, 0, 655360} uses DOS, Calendar; const extension = '.prn' (* output file extenstion *); VAR Fields : ARRAY[0..50] OF INTEGER; (* =================================================== *) FUNCTION StripCommas(SuspectStr: STRIN...
unit NtUtils.Lsa; interface uses Winapi.WinNt, Winapi.ntlsa, NtUtils.Exceptions, NtUtils.Security.Sid, DelphiUtils.AutoObject; type TLsaHandle = Winapi.ntlsa.TLsaHandle; ILsaHandle = DelphiUtils.AutoObject.IHandle; TLsaAutoHandle = class(TCustomAutoHandle, ILsaHandle) // Close LSA auto-handle des...
// ################################## // # TPLVisor - Michel Kunkler 2013 # // ################################## (* In dieser Unit wird zunächst eine Mutterklasse TBefehl definiert, die als Grundlage für die Kindsklassen, die jeweiligen Befehle bildet. Die Attribute der Klasse TBefehl werden im folgenden kurz ...
{ IsOffline: in the case where a Hayes style modem (one that uses the AT command syntax), test to see if it's connected or not. If we had the DCD (Carrier Detect) signal available, we'd use that. But since we don't, we send an empty AT command and see if there's a modem there in the offline ...
unit SplashScreenU; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, dxGDIPlusClasses; type TSplashForm = class(TForm) Image1: TImage; Label1: TLabel; Label2: TLabel; private { Private declarations } public { Public d...
unit Report_GoodsMI_Package; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, AncestorReport, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, dxSkinsCore, dxSkinsDefaultPainters, dxSkinscxPCPain...
unit uDownloads.Model.Entidades.LogDowload; interface uses uDownloads.Model.Interfaces, Data.DB, System.SysUtils; type TModelEntidadesLogDowload = class(TInterfacedObject, IEntidadeLogDowload) private FoQuery: IQuery; function RetornarDataLog: String; function ConsultarIDLog: Integer; public ...
unit FIToolkit.Exceptions; interface uses FIToolkit.Commons.Exceptions; type EApplicationException = class abstract (ECustomException); EApplicationExecutionFailed = class (EApplicationException); ECLIOptionsProcessingFailed = class (EApplicationException); EErroneousConfigSpecified = class (EApplicatio...
unit regconst; interface resourcestring SAbout = 'Borland Turbo Register Server -- COM Server Registration utility.' + #13#10'Version 1.1. Copyright (c) 1997,99 Inprise Corporation'#13#10; SUsage = 'Syntax: TREGSVR [options] filename'#13#10 + ' -u = Unregister server or type library'#13#10 + ' -q...
(* CIStringSetUnit: MM, 2020-05-30 *) (* ------ *) (* A simple class for CaseInsensitiveStringSet Operations using *) (* a single linked list *) ...
unit Classe_Usuario; interface uses Classes, Dialogs, SysUtils, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, FireDAC.Comp.DataSet, FireDAC.Comp.Client; type TUsuario = class ...
unit sosemanu; {Sosemanuk stream cipher routines} interface {$i STD.INC} {$define CHECK_KEY_BITS} {undef to allow key sizes from 0 to 256 bits} {otherwise 128 to 256 bits are used.} {.$define DebugAlign} {Debug output for BASM16 alignment} (****************************...
unit asmstring; interface uses Classes; // TAsmStr allows you to assemble a shellcode string piece by piece. Supports // use of labels and jumps (also forward declarations). type TAsmStr = class(TObject) private RelBList : TStringList; RelCList : TStringList; OffsList : TStr...
unit FIToolkit.Commons.Types; interface uses System.SysUtils, System.Rtti; type TObjectPropertyFilter = reference to function (Instance : TObject; Prop : TRttiProperty) : Boolean; TAssignable<T> = record private type TOnChange = reference to procedure (WasAssigned : Boolean; const Curren...
unit ff7background; interface Uses Windows, SysUtils, Classes, Graphics, FF7Types; function RebuildBackground(Original:TMemoryStream;NewForeground,NewBackground:TBitmap):TMemoryStream; Type TFullTile = array[0..15,0..15] of Word; TTile = array[0..15,0..15] of Byte; PTile = ^TTile; TPalettePage =...
unit Test.Devices.Vacon.ReqCreator; interface uses Windows, TestFrameWork, GMGlobals, Test.Devices.Base.ReqCreator, GMConst; type TVaconNXLReqCreatorTest = class(TDeviceReqCreatorTestBase) protected function GetDevType(): int; override; procedure DoCheckRequests(); override; end; implementation { TVa...
unit uwebsockClock; {$mode objfpc}{$H+} interface uses Classes, SysUtils, SynCommons, SynCrtSock, SynBidirSock; type TWebsocketClockincoming = procedure(const msg:RawByteString) of object; { TWebSocketProtocolClock } TWebSocketProtocolClock = class(TWebSocketProtocolChat) private fIncoming: TWe...
unit Test.Devices.Vzlet; interface uses Windows, TestFrameWork, Devices.Vzlet; type TVzletTest = class(TTestCase) private protected published procedure CRC(); end; implementation { VzletTest } procedure TVzletTest.CRC; var buf: array [0..10] of byte; begin buf[0] := $01; buf[1] := $04; buf[2] ...
unit IdDICTServer; interface uses Classes, IdGlobal, IdTCPServer; const KnownCommands: array[1..10] of string = ( 'AUTH', 'CLIENT', 'DEFINE', 'HELP', 'MATCH', 'OPTION', 'QUIT', 'SASLAUTH', 'SHOW', 'STATUS' ); type TIdDICTGetEvent = procedure(Thread: TIdPeerThr...
{*******************************************************} { } { Delphi Visual Component Library } { } { Copyright(c) 1995-2018 Embarcadero Technologies, Inc. } { All rights rese...
unit MainFormU; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Data.DB, Vcl.ExtCtrls, Vcl.FileCtrl, Vcl.ComCtrls, Vcl.Grids, Vcl.DBGrids, FireDAC.Stan.Intf, FireDAC....
unit GRAPHOBJ; {$mode tp} interface uses Graph; type tGraphObj = object private x, y: integer; color: word; public constructor Init(newX, newY: integer; newColor: word); procedure Hide; virtual; procedure Draw; virtual; procedure Move(newX, newY: integer); end; tArc = object(tGrap...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2020-2020 Skybuck Flying // Copyright (c) 2020-2020 The Delphicoin Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
{------------------------------------------------------------------------------- // EasyComponents For Delphi 7 // 一轩软研第三方开发包 // @Copyright 2010 hehf //...
unit ncaFrmEditValidade; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer, cxEdit, Menus, cxLabel, cxTextEdit, cxMaskEdit, cxSpinEdit, StdCtrls, cxButtons, cxGroupBox, ComCtrls, dxCore,...
unit const_record_1; interface implementation type TRec = record a, b: Int32; end; const R: TRec = [12, 13]; var G1, G2: Int32; procedure Test; begin G1 := R.a; G2 := R.b; end; initialization Test(); finalization Assert(G1 = 12); Assert(G2 = 13); end.
unit MediaProcessing.Common.Processor.FPS.ImageSize; interface uses SysUtils,Windows,Classes,MediaProcessing.Definitions,MediaProcessing.Global, MediaProcessing.Common.SettingsDialog.FPS.ImageSize,MediaProcessing.Common.Processor.FPS; type TChangeImageSizeMode = (cismNone,cismScale,cismCustomSize); TMediaPro...
unit UnitOfBot; interface uses System.SysUtils, System.Classes, Vcl.ExtCtrls, Vcl.Dialogs, Winapi.Messages, UnitOfGLobalFunctionsWithCards; var DeckOfBot: TArrayOfDeck; DeckToDropOfBot: TArrayOfDeck; // массив с картами, которые могут быть положены в сброс procedure CompareBotCardsWithDrop; // сравнение f...
unit RemoveBlankLinesInVars; { AFS 9 March 2003 At request, remove blank lines in procedure var declarations (and procedure const & type declarations) } {(*} (*------------------------------------------------------------------------------ Delphi Code formatter source code The Original Code is Re...
unit AOrdemCortePendente; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, Grids, DBGrids, Tabela, DBKeyViolation, StdCtrls, Buttons, DB, DBClient, Menus; type TFOrdemCortePendente = class(TFormularioPermissa...
program TesteSortiereListe(input, output); type tNatZahl = 0..maxint; tRefListe = ^tListe; tListe = record info : tNatZahl; next : tRefListe; end; var RefListe: tRefListe; procedure SortiereListe (var ioRefListe : tRefListe); { sortiert eine lineare Liste aufsteig...
{ GS1 interface library for FPC and Lazarus Copyright (C) 2020-2021 Lagunov Aleksey alexs75@yandex.ru This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License,...
unit u_FrameWeightNum; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls; type TframeWeightNum = class(TFrame) lblNum: TLabel; lbWeightTime: TLabel; tmrCheckOutDated: TTime...
unit StackA; interface uses error; type TElement = longint; { replacable element type } const MAXS = 30; type TStack = record last: integer; E: array[1..MAXS] of TElement; end; procedure InitStack (var S: TStack; size:integer); procedure CleanUpStack (var S: TStack); procedure push (var S: TSta...
unit DataLankProtocol; { DataLankProtocol only serves as a guide to describe what the interface to the TDataConnection and TQueryResult object should be. Don't include it in a project (unless you need a quick-fix to determine if a project has correct syntax.) Don't override from TDataConnection or TQueryResult. Creat...
{*******************************************************} { } { CodeGear Delphi Runtime Library } { Copyright(c) 2016-2018 Embarcadero Technologies, Inc. } { All rights reserved } { ...
unit AHoraAgendaChamado; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, StdCtrls, Buttons, Componentes1, ExtCtrls, PainelGradiente, Localizacao, ComCtrls, Mask, UnDados, DBKeyViolation, UnChamado; type TFHoraAgendaChamado = class(TFormularioPer...
{*************************************************************** * * Project : NewsReader * Unit Name: mainform * Purpose : * Version : 1.0 * Date : Wed 25 Apr 2001 - 01:30:19 * Author : <unknown> * History : * Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotmail.com> * *****************...
unit account_c; {This file was generated on 27 Oct 2000 17:52:20 GMT by version 03.03.03.C1.06} {of the Inprise VisiBroker idl2pas CORBA IDL compiler. } {Please do not edit the contents of this file. You should instead edit and } {recompile the original IDL which was located in the file ...
unit GrievanceCondoCopyDialogUnit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons, wwdblook, Db, DBTables, ExtCtrls, Grids, Wwtable; type TGrievanceCondoCopyDialog = class(TForm) OKButton: TBitBtn; CancelButton: TBitBtn; GrievanceTable: TT...
{ Задача, создание архива в памяти и преобразование в форму для отправки письма. Скорее всего все операции будут делаться в памяти, так что операции будут ограничены потоками... Функционал для создания письма: - Создать поток архива - Добавить в поток файл Функционал для чтения письма: - Открыть п...
{**********************************************} { TBarSeries Component Editor Dialog } { Copyright (c) 1996-2004 by David Berneda } {**********************************************} unit TeeBarEdit; {$I TeeDefs.inc} interface uses {$IFNDEF LINUX} Windows, Messages, {$ENDIF} SysUtils, Clas...
unit UnitTCifrador; interface uses SysUtils, StrUtils; type TCifrador = class clave : array[0..9] of byte;//La clave es una secuencia de 10 digitos mensaje: string;//El mensaje es el texto sin cifrar cifra: string;//El resultado de cifrar el texto plano KeyPointer:byte;//apunta a uno de los digit...
unit Model.Entities; interface uses SysUtils, Generics.Collections, Aurelius.Mapping.Attributes, Aurelius.Mapping.Metadata, Aurelius.Types.Blob, Aurelius.Types.DynamicProperties, Aurelius.Types.Nullable, Aurelius.Types.Proxy; type TBook = class; TCategory = class; [Entity] [Table('BOOKS')] ...
unit View.List.ToFuel; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, View.List.Base, Data.DB, System.ImageList, Vcl.ImgList, System.Actions, Vcl.ActnList, Vcl.Grids, Vcl.DBGrids, Vcl.StdCtrls, Vcl.ExtCtrl...
unit Rx.Observable.Zip; interface uses SyncObjs, Rx, Rx.Subjects, Generics.Collections, Rx.Implementations, Rx.Fibers; type TInterceptor<T> = class(TObservableImpl<T>) private FOnNextIntercept: TOnNext<T>; FOnErrorIntercept: TOnError; FOnCompletedIntercept: TOnCompleted; public ...
unit ADAPT.UnitTests.Maths.SIUnits; interface {$I ADAPT.inc} uses {$IFDEF ADAPT_USE_EXPLICIT_UNIT_NAMES} System.Classes, System.SysUtils, {$ELSE} Classes, SysUtils, {$ENDIF ADAPT_USE_EXPLICIT_UNIT_NAMES} DUnitX.TestFramework, ADAPT.Intf, ADAPT.Math.SIUnits; type [TestFixture] TAdaptUnitTestM...
unit Import; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Recs, StdCtrls; type TImportForm = class(TForm) rbBinkD: TRadioButton; rbBinkPlus: TRadioButton; rbTMail: TRadioButton; rbXenia: TRadioButton; bOK: TButton; bCancel: TButton; bHelp: TButton...
unit LZW; {$mode objfpc}{$H+} interface uses Classes, SysUtils; {function CompressStr(var bin:String):String; function DeCompressStr(var bin:String):String;} function CompressStream(var bin:TMemoryStream):TMemorystream; function DecompressStream(var bin:TMemoryStream):TMemorystream; //Experemental function Getby...
// PROGRAMME DE DEMONSTRATION DE L'UNITE ALPHA UTILS // Auteur : Bacterius // Amusez-vous bien ! (voir AlphaUtils.pas pour plus d'infos pratiques) unit Main; // Header unité interface uses // Les quelques unités (fournies avec Delphi ou avec mon zip) nécessaires pour lancer le programme Windows, SysUtils,...
unit regUtils; interface uses registry, Forms, Windows, SysUtils; Procedure SaveToRegistryWindowInfo(NameOfProject:string;Form:TForm); Function LoadFromRegistryWindowInfo(NameOfProject:string;var Form:TForm):boolean; Procedure SaveToRegistryCardsSorting(NameOfProject:string;SortBySuit,SortByValue,AutomaticSo...
unit SIP_Monitor; interface function GetTick64:Int64; function SIPMonitorStatus:String; type TSIPMonitor=record Status_RS, Status_GSM, Count_GSM, Status_Mail, Count_Mail, Status_SIP:Int64; GSM_Registration:String; end; var SIPMonitor:TSIPMonitor; implementation uses Windows, SysUt...
unit HeidiTestRunner; interface uses SysUtils, Classes, XMLTestRunner, TestFramework, TestLogMgr, WebReport, BDSUtils; type THeidiTestListener = class(TXMLTestListener) private function MakeUTCTime(DateTime: TDateTime): TDateTime; public procedure TestingEnds(testResult: TTestResult); ove...
unit AExcluiProdutoDuplicado; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, formularios, Componentes1, ExtCtrls, PainelGradiente, Buttons, StdCtrls, Localizacao, UnProdutos, UnDadosLocaliza; type TFExcluiProdutoDuplicado = class(TFormularioPermissao) ...
unit OpenPortForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, RzPanel, RzDlgBtn,VaComm, VaClasses,Main; type TForm4 = class(TForm) baudrateSelection: TComboBox; datab...
{*******************************************************} { } { Delphi DataSnap Framework } { } { Copyright(c) 1995-2011 Embarcadero Technologies, Inc. } { ...
unit TestLayoutBare; { AFS 1 March 2000 This unit compiles but is not semantically meaningfull it is test cases for the code formatting utility a 'bare' block is one that does not have begin..end around it This unit tests layout for statments with bare blocks IMHO doing things this way in real code is ...
{------------------------------------------------------------------------------- HtmlViewer6TestForm.pas, (C) 03/2011 by Bernd Gabriel, all rights reserved mailto: info@fast-function-factory.de -------------------------------------------------------------------------------} unit HtmlViewer6TestForm; interface uses ...
{ ID: a2peter1 PROG: rect1 LANG: PASCAL } {$B-,I-,Q-,R-,S-} const problem = 'rect1'; MaxN = 1000; MaxC = 2500; type rect = record A,B,C,D, color : longint; end;{rect} var X,Y,N,i,r : longint; ls : array[0..MaxN] of rect; area : array[0....
unit u_J16LevelWithoutFilterImp; interface uses Classes, SysUtils, StrUtils, u_ExamineImp, u_J08TaskIntf, u_J08Task, u_J16CommonDef; type TLevelWithoutFilterMeasure = Class(TCustomExamineItem, IStatText2XLS) Private // FLog: TLO1MesureLog; Procedure InternalCheck(const Value: Boolean; const ExceptionInfo:...
unit Geometry; interface uses Bitmaps, Points, Textures, EngineTypes; procedure CreateSector (var S: Sector; PC : integer; const Pts : array of PPoint); // указатели на точки; nil=конец грани procedure InitSectorNormals (var S: Sector); function CenterSector (const S: Sector): Point; implement...
unit DirectoryStat; interface uses Classes, sysUtils, InternalTypes; type tDirectoryStat = class(tStringList) private fSize : TUInt64; function GetTypeExtension(Index : Integer) : String; procedure SetTypeExtension(Index : Integer; S : String); function GetFileInfoFromIndex(Index : Integer) : tFileInfoA...