text stringlengths 14 6.51M |
|---|
{*!
* Fano Web Framework (https://fanoframework.github.io)
*
* @link https://github.com/fanoframework/fano
* @copyright Copyright (c) 2018 Zamrony P. Juhara
* @license https://github.com/fanoframework/fano/blob/master/LICENSE (MIT)
*}
unit DispatcherImpl;
interface
{$MODE OBJFPC}
uses
DispatcherIn... |
{$mode objfpc}
unit List;
interface
type EListEmpty = class
end;
type generic TListNode<_T> = class
_Data: _T;
_Next: TListNode;
_Prev: TListNode;
public
constructor Create( d : _T );
destructor Free;
procedure SetNext( n : TListNode );
procedure SetPrev( p : TListNode );
function ... |
unit vr_intfs;
{$mode delphi}{$H+}
{$I vrode.inc}
interface
uses SysUtils, Classes, vr_types{$IFDEF WINDOWS}, windows{$ENDIF};
type
TOsEvent = vr_types.TOSEvent;
ICustomData = interface
['{1B8A37FB-94FF-48D6-80B2-AB2C6E64515B}']
end;
IVariantObject = interface //inherit to work IVariant ... |
unit IdUDPClient;
interface
uses
IdUDPBase;
type
//TODO: The send methods cause Host to be resolved each time
// change this to cache the resolution locally.
TIdUDPClient = class(TIdUDPBase)
protected
public
procedure Send(AData: string); overload;
procedure SendBuffer(var ABuffer; const AByteCount... |
unit iaExample.CDE.ControllerThread;
interface
uses
System.Classes,
System.SyncObjs,
Vcl.StdCtrls;
type
TExampleControllerThread = class(TThread)
private const
WorkerThreadCount = 3;
private
fCDE:TCountdownEvent;
fCallBackMemo:TMemo;
protected
procedure Execute(); overr... |
unit ncaFrmZerarTempo;
{
ResourceString: Dario 11/03/13
Nada pra fazer
}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, cxLookAndFeelPainters, StdCtrls, cxButtons, cxRadioGroup,
cxControls, cxContainer, cxEdit, cxLabel, cxGraphics, cxLookAndFeel... |
{$DEFINE HASCANVAS}
unit LuaShape;
interface
Uses Classes, Controls, StdCtrls, ComCtrls, ExtCtrls, FileCtrl, EditBtn, Buttons, Forms, Spin, ActnList, CheckLst, TypInfo, LuaPas, LuaControl, LuaCanvas;
function CreateShape(L: Plua_State): Integer; cdecl;
type
TRotateShape = class(TShape)
private
fAngle: extended... |
(*
Implementation of typical Observable.
Before deciding to implement your own Observable,
check here.
--- Implicit infrastructure ---
There are principles that may not be obvious in the code.
One of the most important is that no event will be issued
after the sequence is complete (onError or... |
unit VA508AccessibilityCompileInfo;
interface
{$UNDEF DELAY_BEFORE_SHOW}
{$DEFINE DELAY_BEFORE_SHOW}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, DateUtils, StrUtils;
type
TfrmProgress = class(TForm)
pnlMain: TPanel;
pnlProject: TPanel;
... |
unit CRSSHIOHandler;
{$IFDEF FPC}
{$mode delphi}
{$ENDIF}
interface
uses
Types, SysUtils, Classes, ScTypes, MemUtils,
ScVio, {$IFNDEF SBRIDGE}CRVio, {$ENDIF}
ScBridge, ScSSHClient, ScSSHChannel;
{$I SecureBridgeVer.inc}
type
{$IFDEF VER16P}
[ComponentPlatformsAttribute({$IFDEF STD}pidDevartWinPlatforms{$... |
{***************************************************************
*
* Project : UDPClient
* Unit Name: UDPClientMain
* Purpose : UDP demo - client project
* Version : 1.0
* Date : Wed 25 Apr 2001 - 01:44:24
* Author : <unknown>
* History :
* Tested : Wed 25 Apr 2001 // Allen O'Neill <allen_oneill@hotm... |
unit Vawrgrid;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Grids;
type
TVAWrapGrid = class(TStringGrid)
private
{ Private declarations }
fHiddenCols: string;
fHiddenColMap: string[255];
procedure SetHiddenCols(Value:string);
protected
{ Pro... |
unit pTaxBillNameAddress;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, DBCtrls, StdCtrls, ExtCtrls, Mask, DB, DBTables, Buttons,
Types, DBLookup, Wwtable, Wwdatsrc, wwdblook;
type
TfmTaxBillAddress = class(TForm)
Panel1: TPanel;
TitleLabel: TLabe... |
unit AppGlobals;
interface
uses
StdCtrls;
const
APP_BETA_BUILD = -1;
STD_BUFFER_SIZE = 1024*1024*1; // 1 MB
resourcestring
EXTN_IMG_NORMAL = 'img';
EXTN_IMG_COMPRESSED = 'gz';
DOT_EXTN_IMG_COMPRESSED = '.gz';
// Open/Save file filters...
FILE_FILTER_FLT_IMAGES = 'All im... |
{ Модуль с описанием узла дерева }
unit UNode;
interface
uses
ComCtrls, SysUtils, Math;
const
{ Минимально возможный элемент }
MinElem = 0;
{ Максимально возможный элемент }
MaxElem = 100;
type
{ Тип Элемент дерева }
TElem = MinElem..MaxElem;
{ Тип "Указатель на узел дерева"}
TPtr = ^TNode;
{ Кл... |
unit Main;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls,
Grids, ShellCtrls, ListViewFilterEdit, JvTabBar, JvPageList,
JvTabBarXPPainter;
type
{ TMainForm }
TMainForm = class(TForm)
cbCloseButton: TCheckBox;
cbAllowTabMoving: TCheckB... |
unit BrickCamp.Repositories.IAnswer;
interface
uses
System.JSON,
BrickCamp.Model.TAnswer;
type
IAnswerRepository = interface(IInterface)
['{A8CEDDFF-9337-4317-9864-D6FE771937B4}']
function GetOne(const Id: Integer): TAnswer;
function GetList: TJSONArray;
procedure Insert(const Answer: TAnswer);... |
unit form_Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls,
form_BackupRestore;
type
TfrmMain = class(TForm)
pbBackup: TButton;
pbRestore: TButton;
pbSecDelete: TButton;
pbVerify: TButton;
Label1: TL... |
unit VCLClientMainForm;
interface
{$POINTERMATH ON}
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.FileCtrl, Vcl.Grids,
DateUtils,IOUtils,Registry,
tgputtylib,tgputtysftp, Vcl.ComCtrls;
type
TVCL... |
unit RakNetStatistics;
interface
type
IRakNetStatistics = Interface(IInterface)
// /// For each type in RNSPerSecondMetrics, what is the value over the last 1 second?
// uint64_t valueOverLastSecond[RNS_PER_SECOND_METRICS_COUNT];
//
// /// For each type in RNSPerSecondMetrics, what is the total value over ... |
unit Report_Sold_Day;
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, cxPCdxBarPopupMenu, cxStyles,
cxCustomData, cxFilter, cxDat... |
unit Broker_s;
{This file was generated on 11 Aug 2000 20:13:59 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 broke... |
unit SIP_Action;
interface
uses Classes;
type
TSIPOperation=(OP_NONE,OP_RING,OP_DELAY,OP_PLAY,OP_DTMF,OP_JUMP,OP_CALL,OP_HANGUP,OP_SMS,OP_Mail);
TSIPAction=class(TObject)
private
OperandsArray:array of String;
function GetOperand(Index: Integer): String;
procedure SetOperands(const Value: String);
... |
unit SpinButtonImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB, Spin;
type
TSpinButtonX = class(TActiveXControl, ISpinButtonX)
private
{ Private declarations }
FDelphiControl: TSpinButton;
FEvents: ISpinButtonXEve... |
unit uCidade;
interface
uses
uPaiControle, uEstado;
type
TCidade = class(TControle)
private
FIdCidade: Integer;
FNome: string;
FIdEstado: integer;
FEstado: TEstado;
function GetEstado: TEstado;
public
destructor Destroy; override;
property IdCidade: Integer read ... |
unit RakPeerInterface;
interface
uses
RakNetTypes,
RakNetTime,
RakNetSocket2,
PacketPriority,
System.Generics.Collections;
type
IRakPeerInterface = Interface(IInterface)
///Destructor
// destructor Destroy;
// -----------------------------------------------------------------------------------... |
{1.4. Реликтовая роща (6)
В заповеднике растет роща реликтовых деревьев. Для их защиты требуется обнести рощу
забором. Но для обеспечения доступа к остальной территории заповедника площадь участка,
окруженного забором, должна быть минимальной. Деревья растут точно в узлах координатной
сетки на расстоянии одного метра д... |
unit UtilsDb2;
interface
USES SysUtils, WinTypes, WinProcs, Classes, Messages, Controls, DateUtils,
Forms, Dialogs, stdCtrls, Grids, DBGrids, DBClient,
Graphics, Db, JPEG, SqlExpr, Provider, StrUtils, Variants;
Function UltimoSequencial(sNomeTab,sCampoId: String): Integer;
Function UltimoID(sNomeT... |
unit caTextStore;
{$INCLUDE ca.inc}
interface
uses
// Standard Delphi units
Sysutils,
Classes,
// ca units
caConsts,
caUtils,
caLog,
caIni;
type
//```````````````````````````````````````````````````````````````````````````
// TcaTextItem ... |
unit uReservaModel;
interface
uses FireDac.Comp.Client, uEnumerado, System.SysUtils;
type
TReservaModel = class
private
FAcao: TAcao;
FIdLivro: string;
FIdUsuario: string;
FInicio: string;
FFim: string;
FHora: string;
procedure setAcao(const Value: TAcao);
proce... |
{***************************************************************************
*
* Orion-project.org Lazarus Helper Library
* Copyright (C) 2016-2017 by Nikolay Chunosov
*
* This file is part of the Orion-project.org Lazarus Helper Library
* https://github.com/Chunosov/orion-lazarus
*
* This Library is free soft... |
unit Soccer.Voting.Domain;
interface
uses
System.SysUtils,
System.Generics.Collections,
System.RegularExpressions,
Soccer.Exceptions,
Soccer.Domain.Abstract,
Soccer.Domain.Factory,
Soccer.Voting.Actions,
Soccer.Voting.RulesDict,
Soccer.Voting.RulePreferenceList,
Soccer.Voting.Preferences,
Soc... |
unit RecordsTestForm;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls,
FMX.Layouts, FMX.Memo, FMX.Controls.Presentation, FMX.ScrollBox;
type
TForm1 = class(TForm)
Memo1: TMemo;
B... |
unit rhlKeccak;
interface
uses
rhlCore;
type
{ TrhlKeccak }
TrhlKeccak = class abstract(TrhlHash)
private
m_state: array[0..24] of QWord;
protected
procedure UpdateBlock(const AData); override;
public
constructor Create; override;
procedure Init; override;
procedu... |
unit Vigilante.Build.Model.Impl;
interface
uses
Model.Base.Impl, Vigilante.Build.Model, Vigilante.Aplicacao.SituacaoBuild,
Module.ValueObject.URL;
type
TBuildModel = class(TModelBase, IBuildModel)
private
FNome: string;
FURL: string;
FSituacao: TSituacaoBuild;
FBuilding: Boolean;
FBuildAt... |
unit wb_mobile_app;
{$mode delphi}{$H+}
interface
uses
Classes, SysUtils,
vr_utils, vr_JsonRpcClasses, vr_json_conf, vr_transport;
type
{ TCustomWBMobileApp }
{$M+}
TCustomWBMobileApp = class(TComponent)
private
FRpc: TJsonRpcClient;
FWB: IWebBrowser;
procedure OnWBShowCon... |
(*
unit Owner: D10.Mofen, qdac.swish
welcome to report bug: 185511468(qq), 185511468@qq.com
Web site : https://github.com/ymofen/msgpack-delphi
* Delphi 2007 (tested)
* XE5, XE7 (tested)
+ first release
2014-08-15 13:05:13
+ add array support
2014-08-19 12:18:47
+ add andriod s... |
//Ejercicio 11
//La solución de un sistema de ecuaciones lineales con dos incógnitas, se puede obtener mediante la regla de Cramer. Suponga que el
//sistema de ecuaciones es:
//a x + b y = c
//d x + e y = f
//La regla de Cramer dice que, si existe una solución, esta es:
//x = (ce - fb) / (ae - db)
//y = (af - dc) / ... |
unit uCST;
interface
uses
Contnrs,
uRegistro;
type
TCST = class(TRegistro)
private
fID : Integer; // Toda chave primaria nossa no banco dentro do objeto vai chamar ID
fCodigo : String;
fDescricao : String;
procedure SetCodigo(const ... |
unit Unit1;
//
// From original Synopse test program (http://synopse.info/)
// (Indicate a valid search path for the LLCL files before compiling)
//
{$IFDEF FPC}
{$mode objfpc}{$H+}
// {$mode delphi}
// {$mode objfpc}{$modeswitch unicodestrings}{$H+} // Requires FPC 2.7.1+
// {$mode delphiunicode}{$codepage ... |
{------------------------------------------------------------------------------
This file is part of the MotifMASTER project. This software is
distributed under GPL (see gpl.txt for details).
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even th... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit URegraCRUDPaciente;
interface
uses
URegraCRUD
, URepositorioDB
, URepositorioPaciente
, UEntidade
, UPaciente
;
type
TRegraCRUDPaciente = class(TRegraCRUD)
protected
procedure ValidaInsercao(const coENTIDADE: TENTIDADE); override;
public
constructor Create; override;
end;
implemen... |
unit ClassMyListView;
interface
uses ComCtrls, Classes;
type TMyListView = class( TListView )
private
procedure FOnColumnClick( Sender: TObject; Column: TListColumn );
public
constructor Create( AOwner : TComponent ); override;
end;
procedure Register;
implementation
procedure Registe... |
(**************************************************)
(* *)
(* Advanced Encryption Standard (AES) *)
(* Interface Unit v1.3 *)
(* *)
(* ... |
unit DataMod;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
DB, DBTables;
type
TCacheData = class(TDataModule)
CacheDS: TDataSource;
CacheDB: TDatabase;
CacheQuery: TQuery;
UpdateSQL: TUpdateSQL;
CacheQueryUpdateStatus: TStringField;
CacheQuery... |
unit amqp.connection;
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
{$INCLUDE config.inc}
interface
uses {$IFDEF FPC}SysUtils,{$Else} System.SysUtils, {$ENDIF}amqp.socket, AMQP.Types,
amqp.framing, amqp.time, amqp.table,
amqp.privt, amqp.mem, amqp.tcp_socket;
function amqp_new_connection:Pam... |
unit mml_calc;
{-------------------------------------------------------------------------------
ソフト:テキスト音楽「サクラ」
作 者:クジラ飛行机 https://sakuramml.com
説 明:計算の下請けをするクラス。計算速度や、効率は悪いけれど、
分かりやすくするために、演算子ごとクラスに分けてみた
履 歴:
2002/06/03 15:13 雛型作成
--------------------------------------------------------------------------... |
unit FrameLogin;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, StdCtrls, ExtCtrls, Dialogs, DataBases;
type
{ TFrameLogin }
TFrameLogin = class(TFrame)
ButtonRegistration: TButton;
ButtonLogin: TButton;
EditEmail: TLabeledEdit;
EditPassword: TLabeledEdit;
... |
PROGRAM stringcat;
VAR
string1, string2 : string
FUNCTION inquote(instring : string) : string;
BEGIN
inquote := '"' + instring + '"'
END;
BEGIN
WRITELN(string1);
string1 := 'Now ';
WRITELN(inquote(string1));
string2 := 'is the time ';
WRITELN(inquote(string2));
string1 := string1 + string2... |
unit SQLiteTable3;
(*
Простой класс для использования базовых функций библиотеки SQLite (exec и get_table).
TSQLiteDatabase - это обёртка для открытия и закрытия БД SQLite.
Также она позволяет вызвать SQLite_exec для запросов, которые возвращают наборы данных.
TSQLiteTable - обёртка для выполнения SQL-запросов.
... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC DataSnap driver }
{ }
{ Copyright(c) 2004-2018 Embar... |
// This unit is part of the GLScene Project, http://glscene.org
{: GLFileOCT<p>
Support-code to load OCT Files into TGLFreeForm-Components in GLScene.<br>
(OCT being the format output from FSRad, http://www.fluidstudios.com/fsrad.html).<p>
<b>History : </b><font size=-1><ul>
<li>19/06/11 - ... |
unit moway_api;
{$IFDEF CompilerVersion > 14.5}
// Delphi 6默认未处理FPC,故使用版本后区分,简化编译条件。 shijc 2016-8-8
// 备注:原文无版本判断
{$IFDEF FPC}
{$WARNINGS OFF}
{$HINTS OFF}
{$ELSE FPC}
{$WARN UNSAFE_CODE OFF}
{$WARN UNSAFE_TYPE OFF}
{$WARN UNSAFE_CAST OFF}
{$ENDIF FPC}
{$ENDIF}
interface
uses
{$IF Comp... |
unit uGMV_SaveRestore;
interface
uses SysUtils, Forms, Dialogs;
procedure SaveWindowSettings(Form: TForm);
procedure RestoreWindowSettings(var Form: TForm);
implementation
uses uGMV_Common, uGMV_Const
, uGMV_Engine, system.UITypes;
procedure SaveWindowSettings(Form: TForm);
var
WindowSetting: string;
State: ... |
unit uCI1580Device;
interface
uses
CPort, AssThreadTimer, Contnrs;
type
TCI1580CommandType = (cicmdNone,
cicmdWeight,
cicmdGetLowerLimitSP1,
cicmdGetUpperLimitSP2,
cicmdSetLowerLimitSP1,
cicmdSetUpperLimitSP2,
... |
unit UnitAntivirus;
interface
uses
Windows, SysUtils, ActiveX, ComObj, Variants;
type
TSecurityCenterInfo = Class
displayName: string;
end;
TSecurityCenterProduct = (AntiVirusProduct, AntiSpywareProduct, FirewallProduct);
procedure GetSecInfo(SecurityCenterProduct: TSecurityCenterProduct; var SecurityCe... |
unit App.Log;
interface
uses
System.TypInfo,
System.DateUtils,
System.Classes,
System.IOUtils,
System.SyncObjs,
System.SysUtils;
type
TLogStates = (lsStart, lsEnd, lsError, lsAllert, lsNormal);
TLogs = class
private
PathName: string;
Name: String;
LogFile: TextFile;
CriticalSection... |
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... |
unit Model.Pizza;
interface
uses
Model.Interfaces, FMX.Graphics, iORM.Attributes;
type
[ioEntity, diImplements(IPizza)]
TPizza = class(TInterfacedObject, IPizza)
private
FID: Integer;
FName: String;
FPrice: Currency;
FPhoto: TBitMap;
function GetID: Integer;
function GetName: String;... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{ : GLFileGRD<p>
GRD (Grid Text Format) vector file format implementation.<p>
<b>History :</b><font size=-1><ul>
<li>01/05/15 - PW - Fixed LoadFromStream procedure
<li>10/04/09 - PW - Separated from GLVectorFileObjects.pas
<li>1... |
{ *************************************************************************** }
{ }
{ Delphi and Kylix Cross-Platform Visual Component Library }
{ }
... |
{============================= Program Header ========================================
PROGRAM-NAME : PZZ1070A(정보검색Ⅱ 관리자)
SYSTEM-NAME : 종합인사정보
SUBSYSTEM-NAME : 기타
Programmer : 이상문
Version : 1.00
Date : 2017.11.10
Update contents
1.00 2017.11.10 이상문 기존프로그램 재개발 ... |
unit IdEMailAddress;
{
ToDo: look into alterations required for TIdEMailAddressItem.GetText.
}
{
2001-Aug-30 - Jim Gunkel
- Fixed bugs that would occur with group names containing spaces (box test 19)
and content being located after the email address (box test 33)
2001-Jul-11 - Allen O'Neill
- Added hack to n... |
unit darray_procs_1;
interface
implementation
var G: Int32;
procedure IncG;
begin
Inc(G);
end;
procedure Test;
var
Arr: array of procedure;
begin
SetLength(Arr, 10);
for var i := 0 to Length(Arr) - 1 do
Arr[i] := IncG;
for var i := 0 to Length(Arr) - 1 do
Arr[i]();
end;
initializ... |
unit SystemPatch;
interface
type
PPMonitor = ^PMonitor;
PMonitor = ^TMonitor;
TMonitor = record
strict private
type
PWaitingThread = ^TWaitingThread;
TWaitingThread = record
Next: PWaitingThread;
Thread: TThreadID;
WaitEvent: Pointer;
end;
{ TSpinWait implem... |
unit Teste.ChangeSet.JSONData;
interface
uses
System.JSON;
type
TChangeSetJSONData = class
class function Pegar: TJSONArray;
class function PegarChangeSetItem: TJSONObject;
class function PegarChangeSetItemDoisArquivos: TJSONObject;
end;
implementation
class function TChangeSetJSONData.Pegar: TJS... |
unit meetingsEditScreen;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls, uMeetingsClass, uMeetingsArray,
programmesScreen;
type
TfrmMeetingsEditScreen = class(TForm)
btnSubmit: TButton;
lblHeading: TLabel;
Label1:... |
unit uFuncoes;
interface
uses
SysUtils, Dialogs, Controls, Forms, Windows, TypInfo, Registry;
type
schar = set of char;
function SomenteNum(const s: string; conj: schar): boolean;
function ValidaCPF(const Value: String): boolean;
function ValidaCNPJ(const Value: String): boolean;
Function VersaoExeStr: String... |
{******************************************}
{ TGanttSeries Editor Dialog }
{ Copyright (c) 1996-2004 by David Berneda }
{******************************************}
unit TeeGanttEdi;
{$I TeeDefs.inc}
interface
uses {$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
SysUtils, Classes,
{$IFD... |
function IsLeapYear(year: integer): boolean;
begin
if ((year mod 4 = 0) and (year mod 100 <> 0)) or (year mod 400 = 0) then
result := True;
else
result := False;
end; |
{
Algorithme Croix TantQue
But : Dessiner une croix d'une taille saisi par l'utilisateur et avec un caractere saisi par l'utilisateur.
Entrée : Taille, Symbole
Variables : Taille, Largeur, Hauteur : Entier
Symbole : Caractere
DEBUT
ECRIRE("Veuillez entrer le caractere que vous souhaitez utiliser :"");
LIRE(sym... |
unit uEditorForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
Dialogs, Menus, ExtCtrls, StdCtrls, ComCtrls, EnhCtrls, Buttons,
uAssembler, uProcessor, uTimer, uResourceStrings, uMisc, Registry,
SynEdit, SynEditPrint, SynEditHighlighter, SynHighlighterAsm, ImgList,
... |
unit clsTDBUtils;
interface
{$M+}
uses
System.SysUtils,
System.Classes,
Data.DB,
Data.DBCommonTypes,
Uni,
DBAccess;
type
TColDevQuery = class(TUniQuery);
TColDevConnection = class(TUniConnection);
TDBUtils = class(TObject)
private
FConexao: TColDevConnection;
FOwner: TC... |
unit MyMath;
interface
uses
SysUtils,
Nodes, TreeVisitor;
{ This unit defines subclasses of TNode for representing the following
signature:
Data = Real | BinOpKind | Funckind
Sorts = Math
Math = Hole | Meta | Const | Var | UMinus | BinOp | BinExp | Func | FuncApp
Hole = []
... |
{------------------------------------------------------------------------------
This file is part of the MotifMASTER project. This software is
distributed under GPL (see gpl.txt for details).
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even th... |
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium Software
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
This component is an extended TStatusBar with posibilities
to define a list of fixed panels with automatic refresing
information about s... |
(* BinFilter: MM, 2020-04-01 *)
(* ------ *)
(* Simple filter program for binary files *)
(* ========================================================================= *)
... |
unit MediaStream.FrameQueue;
interface
uses
Windows,SysUtils, Classes, SyncObjs, Generics.Collections, Collections.Lists,
MediaProcessing.Definitions,MediaStream.Frame;
type
TMediaStreamFrameQueue = class
private
FFreeItemsLists: array [TMediaType] of TLinkedList<TMediaStreamFrame>;
FItems: TLinkedLis... |
program PeopleLister;
type
Person = record
id: integer;
Name: string;
sex: (male, female);
link: integer;
end;
procedure PrintPerson(const person: Person);
begin
with person do
begin
Write(id);
Write(' ');
Write(Name);
Write(' ');
Write(s... |
(* ustritem.pas -- (c) 1989 by Tom Swan *)
unit ustritem;
interface
uses uitem;
type
strItemPtr = ^strItem;
strItem = object( item )
sp : ^string;
constructor init( s : string );
destructor done; virtual;
function getString : string;
function putString( s : string ) : Boolean; v... |
unit LoanReleaseDetail;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopupDetail, Data.DB, Vcl.Grids,
Vcl.DBGrids, RzDBGrid, RzDBEdit, Vcl.StdCtrls, Vcl.Mask, RzEdit, RzButton,
RzTabs, RzLabel, Vcl.Ima... |
program gcd_program(input,output);
var x,y:integer;
function gcd(a,b:integer):integer;
begin
if b=0 then gcd:=a
else gcd:=gcd(b, a mod b)
end;
begin
write_string('Input a, b:');
read_int(x);
read_int(y);
write_int(gcd(x, y));
end.
|
unit DataMsg;
interface
uses SysUtils, Classes;
type
TDataMsg = class(TObject)
public
SourceID: Integer;
TargetID: Integer;
ParamsList: TStringList;
Data: TMemoryStream;
constructor Create();
destructor Destroy; override;
function ToStream(AStream: TStream): boolean;
... |
_______________________________________________________________
TEXTURE.PAS Accompanies "Mimicking Mountains," by Tom Jeffery,
BYTE, December 1987, page 337
______________________________________________________________
program textures;
const
size = 64;
var
srf : array[0..size, 0..size] of longint;
a... |
CalcException = class(Exception)
public
constructor create(code: Integer);
function getCode: Integer;
class procedure checkException(status: Status);
class procedure catchException(status: Status; e: Exception);
class procedure setVersionError(status: Status; interfaceName: string;
currentVersion, expectedVers... |
unit myunion_s;
{This file was generated on 11 Aug 2000 20:17:46 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 myun... |
PROGRAM SortMonth(INPUT, OUTPUT);
USES DateIO;
VAR
Mo1, Mo2: Month;
BEGIN
ReadMonth(INPUT, Mo1);
ReadMonth(INPUT, Mo2);
IF ((Mo1 = NoMonth) OR (Mo2 = NoMonth))
THEN
WRITE('Входные данные записаны неверно')
ELSE
IF (Mo1 < Mo2)
THEN
BEGIN
WriteMonth(OUTPUT, Mo1);
WRITE(' пре... |
{ A benchmark that tests many short-lived threads with many transient small objects. }
unit WildThreadsBenchmarkUnit;
interface
uses Windows, BenchmarkClassUnit, Classes, Math;
type
TWildThreads = class(TFastcodeMMBenchmark)
public
procedure RunBenchmark; override;
class function GetBenchmarkName: stri... |
unit UErrorConst;
interface
const
// 服务器端错误代码
ERRCODE_SERVER = 000;
ERRCODE_SERVER_ConnectDB = ERRCODE_SERVER + 1;
ERRCODE_SERVER_GetServerDateTime = ERRCODE_SERVER + 2;
ERRCODE_SERVER_ReadDataSet = ERRCODE_SERVER + 3;
ERRCODE_SERVER_ReadMultipleDataSets = ERRCODE_SERVER + 4;
ERRCODE_SERVER_R... |
unit Unit1;
interface
uses
Winapi.Windows,
System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs,
//GLS
GLScene, GLObjects, GLCoordinates, GLCadencer, GLNGDManager,
GLSimpleNavigation, GLWin32Viewer, GLCrossPlatform, GLBaseClasses,
GLVectorFileOb... |
{
ID: nghoang4
PROG: milk
LANG: PASCAL
}
const fi = 'milk.in';
fo = 'milk.out';
maxN = 5000;
type MyData = record
v, c: longint;
end;
var a: array[1..maxN] of MyData;
n, m, s: longint;
procedure Init;
var i: integer;
begin
assign(input,fi); reset(inp... |
{*******************************************************}
{ }
{ Delphi LiveBindings Framework }
{ }
{ Copyright(c) 2011-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
unit uVitals;
{ Old class TVital currently not used - commented out at bottom of unit }
{$DEFINE CCOWBROKER}
interface
uses
SysUtils, Dialogs, Controls, Windows, Classes, ORClasses, ORCtrls, ORFn, Forms,
TRPCB, rMisc, WinAPI.Messages;
const
NoVitalOverrideValue = '^None^';
type
TVitalType = (vtUnknown, vtT... |
{$i deltics.unicode.inc}
unit Deltics.Unicode.Transcode.Utf16ToUtf8;
interface
uses
Deltics.Unicode.Types;
procedure _Utf16BeToUtf8(var aUtf16: PWideChar; var aUtf16Count: Integer; var aUtf8: PUtf8Char; var aUtf8Count: Integer);
procedure _Utf16LeToUtf8(var aUtf16: PWideChar; var aUtf16C... |
unit uConexaoBanco;
interface
uses
uRESTDWPoolerDB;
type
TConexaoBanco = class
private
class var FConexao: TRESTDWDataBase;
class var FInstance: TConexaoBanco;
constructor CreatePrivate;
procedure PreencherDadosConexao;
public
class function GetInstance: TConexaoBanco;
class property... |
unit Unit_Piano;
interface
uses
Main, Classes, Forms, SysUtils, ExtCtrls, Graphics,
mmSystem, Notes_MIDI, Musiques;
type
TPiano = Class(TThread)
private
idNote, BPM: integer;
procedure OnTerminateProcedure(Sender : TObject);
protected
procedure ToucheDown;
procedure ToucheUp;... |
{ ---------------------------------------------------------------------------- }
{ BulbTracer for MB3D }
{ Copyright (C) 2016-2017 Andreas Maschke }
{ ---------------------------------------------------------------------------... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{ : GLPlugInManager<p>
An old PlugIn Manager unit. Don't know if if ever wa used...<p>
<b>Historique : </b><font size=-1><ul>
<li>31/03/07 - DaStr - Added $I GLScene.inc
<li>28/07/01 - EG - Initial version
</ul></font>
}
un... |
{******************************************************************************}
{ Unit description: }
{ Developer: josking Date: 2009/11/29 }
{ Modifier: Date: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.