text
stringlengths
14
6.51M
unit umachar; interface uses uConstants; procedure machar(out ibeta, it, irnd, ngrd, imachep, negep, iexp, minexp, maxexp: Integer; out eps, epsneg, xmin, xmax: Float); { Procedure to calculate machine architecture parameters } implementation procedure machar(out ibeta, it, irnd, ngrd, imachep, nege...
unit TDlgSoundTag; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, AnimationSeekBarImpl1, TDlgSourceTree, ComCtrls; var m_nFrame : Integer; m_AnimationSeekBar : TAnimationSeekBar; type TSoundTagDialog = class(TForm) TagContent: TGr...
unit PlugLib.Utils; interface uses Math; {$SCOPEDENUMS ON} procedure GetBuildVersion(var V1, V2, V3, V4: word); function GetBuildVersionAsString: string; function GetDLLFilename:string; function GetDLLDirectory:string; function GetHostApplicationFullPath: string; function GetHostApplicationFilename: string; fun...
unit Cayan; interface uses System.Classes, System.SysUtils; type /// <summary> /// Encapsulates a general connection and authentication with Cayan systems. /// </summary> /// <remarks> /// This does not actually implement anything, but is attached to other /// specific components for furthe...
unit rStrings; interface uses XSuperObject, uStrings, uRessource; type TRessource_Strings = class(TRessource, IRessource) private public function GetRessourceName: string; function GET(const id: string; jsonResponse: ISuperObject): Boolean; function POST(const id: string; const payload: str...
Unit ESoft.Launcher.Clipboard; Interface Uses Winapi.Windows, System.Classes, {$IFDEF VER230} DBXJSON, {$ELSE} JSON, {$ENDIF} IniFiles, System.SysUtils, ShellApi, Vcl.Graphics, Generics.Collections, ESoft.Utils, Clipbrd; Type TEClipboardItem = C...
{ * Main form file for System Information Unit FireMonkey demo program. * * $Rev$ * $Date$ * * Any copyright in this file is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ } unit FmFMXDemo; interface uses System.SysUtils, System.Types, System.UITypes, System.Rtti, Syste...
unit c_song; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, ExtCtrls, Squall, strutils, Graphics, crDefs, MP3FileUtils, ID3v2Frames, contnrs, c_settings, fgl; const SupportedMusic: array [0..3] of string = ('MP3:mp3', 'WAV:wav;wave', 'OGG Vorbis:ogg', 'W...
{ ****************************************************************** Cholesky factorization of a positive definite symmetric matrix ****************************************************************** } unit ucholesk; interface uses utypes; procedure Cholesky(A: TMatrix; var L: TMatrix; Lb, Ub: Integ...
unit FormMain; interface uses Windows, Messages, Winsock, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, GUIUpdater, TimelineControler, JvExControls, JvLED; type TFrmMain = class(TForm) BIT0: TJvLED; BIT1: TJvLED; BIT2: TJvLED; BIT3: TJvLED;...
unit uMainSvc; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, IniFiles, uScanThread, IdContext, IdCustomHTTPServer, FireDAC.Phys.OracleDef, FireDAC.Stan.Intf, FireDAC.Phys, FireDAC.Phys.Oracle, IdBaseComponent, IdComponent,...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.6.6.4-7, FILE=ERR58P...
unit principal; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, System.TypInfo; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Priva...
PROGRAM InsertSort2(INPUT, OUTPUT); USES SortToFile; VAR ArrayForSort: ArraySort; CountWord, Index: INTEGER; Ch: CHAR; Inp: TEXT; Word: STRING; FUNCTION CheckLetter(Ch: CHAR): BOOLEAN; {функция проверки на принадлежность к кириллическим символам} BEGIN {CheckLetter} CheckLetter := FALSE; IF (...
{ Project: FindDupFar http://code.google.com/p/findupfar/ Author: Alexey Suhinin http://x-alexey.narod.ru License: GPL v.2 } unit FileUtils; {$I PRJDefines.inc} interface uses Classes, FileSystemObjects, // Windows, SysUtils; type TFileGroupListFlags = set of (flSh...
//------------------------------------------------------------------------------------------------------- // // Unit : SEHR.API.pas // Author : �ȿ��� // Description // �Ѿ�� �Ƿ�� EHR API�� ȣ���ϱ� ���� Ŭ���̾�Ʈ ��� // // History // 1.0.0.0 2020.08.19 ó�� �ۼ� // //---------------------------------------------...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.2.2-7, FILE=CONF041, CLAS...
unit Lucidity.FlexSampleRenderer; interface uses Lucidity.Interfaces, VamLib.Graphics, System.Classes, System.Types, Graphics, RedFox, RedFoxColor, RedFoxImageBuffer, Lucidity.SampleMap, VamSamplePeakBuffer; type TFlexRenderPar = record LineColor : TRedFoxColor; Backgrou...
{******************************************************************************} { } { Part of speech } { ...
unit B2.DelayBuffer; interface type TDelayBuffer = class private fBuffer : array of single; fBufferSize: integer; protected WriteIndex : integer; procedure SetBufferSize(const Value: integer); public constructor Create; destructor Destroy; override; procedure...
{----------------------------------------------------------------------------- Expression Matcher -----------------------------------------------------------------------------} unit uExpressionMatcher; interface uses SysUtils, Classes, IniFiles, uMathIntf, uMath, uFunctionsSymbolics; type TExpressionMatcher = c...
program Loading_excel(prvniRadekExcelu : integer = 5); info Title = 'Loading excel'; // Script Title Keywords = 'Loading excel'; // Script Keywords Author = 'Správce systému K2'; // Script Author end; type TDataE = memfile primKey:integer; ucet:string[32]; typ...
unit DContacts.Views.Contact; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, System.Actions, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.Edit, FMX.TabControl, FMX.ActnList, ...
unit uInputQueryForm; interface uses Winapi.Windows, System.StrUtils, System.SysUtils, System.Classes, System.Types, System.Math, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Graphics, frxDesgnCtrls; {$M+} type TInputQueryForm = class(TForm) strict private FBtnConfirmar, ...
unit Uhashtable; {$MODE objfpc}{$H+} (* * Hashtable Unit - unknown author * Uses ELF hash algorithm to convert a string to a hash value * * RJO: Added collision detection - no handling, only warning. *) interface type PHashRec = ^THashRec; THashRec = record Next: PHashRec; hash: i...
{ Напишите программу для решения следующей задачи. Девятиклассники участвовали в викторине по математике. Необходимо было ответить на 20 вопросов. Победителем викторины считается участник, правильно ответивший на наибольшее количество вопросов. На сколько вопросов победитель ответил правильно? Если есть участники викт...
unit uUploadTempVio; interface uses System.Classes, uGlobal, uEntity, Generics.Collections, SysUtils, ActiveX, uRequestItf; type TUploadTempVioThread = class(TThread) private { Private declarations } protected procedure Execute; override; end; implementation { Important: Methods and propertie...
{==============================================================================| | Project : Delphree - Synapse | 001.000.002 | |==============================================================================| | Content: Inline MIME support procedures and functions ...
unit uIniSave; interface uses System.Rtti, System.TypInfo; type IniSaveClassAttribute = class(TCustomAttribute) private FTheClassName: string; published property TheClassName: string read FTheClassName write FTheClassName; end; IniIgnoreAttribute = class(TCustomAttribute); IniDefaultAttribute...
segment QueueADT; {Erick Nave DSAI 11-19-93} {QueueADT uses dynamic memory to implement the queue in order to ease the process dequeueing the Queue since the first node is easy to get to and remove without costly data moves or complex code. Dynamic memory also makes attaching 2 queues easier since all that ...
unit Debugger; interface uses ExtCtrls; const MAX_LINE = 1024; MAX_VARIABLE = 256; type TDebugCommand = (DBC_NONE = 0, DBC_CONTINUE, DBC_GET_LOCAL_VAR, DBC_SET_LOCAL_VAR, DBC_SET_GLOBAL_VAR, DBC_RELOAD_SCRIPT, DBC_INACTIVE = $FEDC); TLuaVarType = (LUA_TNONE = -1, LU...
//****************************************************************************** // // DAudioEffect.pas // 8 December 2006 // // Part of the VST 2.4.2 SDK for Delphi // by Frederic Vanmol // http://www.axiworld.be // frederic@axiworld.be // //-----------------------------------------------------------------...
unit uSMTPUtils; { 2020.11.17 可以正常发送 465 ssl 邮件,之前有两点,需要注意: 1. idSMTP1.UseTLS := utUseImplicitTLS; 2. idSMTP1.password := authCode; } interface uses classes; type TSMTPParms = record Username: string; //设置登陆帐号 Password: string; //设置登录password Host: string; //设置SMTP地址 Port: integer; //设置port ...
unit eeOverSamplingFilters; interface uses VamLib.MoreTypes, SignalTools, SignalProcessing; type TInputFilter = class private procedure SetBufferSize(const Value: integer); function GetInterpolationFactor: integer; procedure SetInterpolationFactor(const Value: integer); protected ...
unit untFunc; interface uses Windows, SysUtils, WinSvc, untSerInterface; resourcestring RS_HELP_TEXT = 'LCXLShadow配置程序帮助'#10#10'用法:LCXLShadowConfig [/Install|/Uninstall|[/?|/help]]'; const LCXL_DRIVER_FILE_NAME = 'LCXLShadowDriver'; LCXL_DRIVER_FILE_EXT = '.sys'; LCXL_SER_FILE_NAME = 'LCXLShadowSer'; ...
program LoesungSuchen (input, output); { bestimmt die Loesungen der Gleichung a*x*x + b*x + c = 0.0 fuer einzulesende a, b, c; Vorbedingung: a<>0.0 } var KoeffA, KoeffB, KoeffC, L1, L2 : real; exist : boolean; procedure LoesungBestimmen ( inA, inB, inC : real; var outLoesung1 : real; var outLoe...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.3.5-1, FILE=CONF066, CLAS...
program NulWrite; (* Version 2.6 12/2019 (c) ALFWARE Bernd Schubert *) uses crt, dos, zeit12; const MAX = 32768; KILO=1024; MEGA=1024*1024; GIGA=1024*1024*1024; protoname : String = 'nulwrite_'; var PROTOKOLL: Text; DATEI: File; ZEICHEN, LOESCHEN, ZUFALL, CH: Char; VERZEICHNIS, KET...
unit UnitTMainMenuView; 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.PlatformDefaultStyleActnCtrls, System.Actions, Vcl.ActnList, Vcl.ActnMan, UnitTDeck, UnitTDeckNode, U...
{***************************************************************************} { } { Spring Framework for Delphi } { } { ...
// Модуль с русифицированной и упрощённой функцией MessageDlg // и диалогом AskMessageDlg unit DMessageDlg; interface uses Dialogs; // Эта функция ведет себя как настоящий MessageDlg. // Она не создает нового окна. И вызывается модально, т.е. нельзя // переключиться на другое окно не отреагировав на сообщ...
var n, max, d: integer; begin read(n); max := integer.MinValue; while n <> 0 do begin d := n mod 10; if d mod 2 <> 0 then write(d, ' '); if d > max then max := d; n := n div 10; end; writeln; write(max); end.
unit BaseDock; interface uses DragDock, Dock.Interfaces, Utils, Classes, Controls, System.Types, System.TypInfo, Vcl.AppEvnts,Vcl.Graphics, Vcl.Forms, VCL.Themes, Winapi.Windows, Winapi.Messages; type TDockState = (bsClick, bsUnClick); TDragDockProc = reference to procedure(DragDock: TDragDoc...
unit AQConfig; interface uses System.JSON, System.Classes, ObjectsMappers, System.SysUtils, JsonableInterface, System.Generics.Collections, Client, Consumer, RepositoryConfig; type StringMapper = reference to function(const From: String): String; type /// <summary> /// Mutable data type to store the ac...
unit UCadTime; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls, UPadrao, FMX.Controls.Presentation, FMX.Layouts, FMX.Edit, IWSFutSystem1; type TFrmCadTime = class(TFrmPadrao) Label1...
unit MainForm; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls, Vcl.Menus; type TMainDlg = class(TForm) CloseMenuItem: TMenuItem; EditMenuItem: TMenuItem; ExitMenuItem: TMenuItem; ...
unit UntFizzBuzz; interface type TFizzBuzz = class class function ToString(n: Integer): string; end; implementation uses SysUtils; { TFizzBuzz } class function TFizzBuzz.ToString(n: Integer): string; begin if ((n mod 15) = 0) then begin Result := 'Fizz Buzz'; end else if ...
unit cpuid; // CPU identification. // This unit defines the GetCpuID function, which uses the CPUID // instruction to get the processor type. GetCpuID returns True if the // processor support the CPUID instruction and False if it does not. // Older 486 and earlier processors do not support CPUID. // Copyright © 1999...
unit soGateEnvelope; interface uses VamLib.MoreTypes; type TGateEnvelope = class private fSampleRate:single; AttackStepSize:single; ReleaseStepSize:single; CurrentEnvLevel:single; TargetValue:single; fEnvStage:integer; procedure SetAttackTime_MS(const Value: sing...
unit PitchEnv; interface {$POINTERMATH ON} uses env; const LG_N = 6; N = 1 shl LG_N; type TPitchEnv = record class var unit_ : integer; var FRates, FLevels : TEnvArray; FLevel, FTargetLevel : integer; FIsRising : Boolean; FIndex, FInc : integer; FIsDown : Boolean; ...
unit LUX.Brep.Face.TriFlip; interface //#################################################################### ■ uses LUX, LUX.D3, LUX.Graph.Tree, LUX.Brep.Poin; type //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$【型】 TTriPoin<_TPos_:record> = class; TTriFace<_TPos_:record> = cl...
unit SimpleValidator; interface uses System.Classes, RTTI, SimpleAttributes, System.SysUtils, SimpleRTTIHelper; type ESimpleValidator = class(Exception); TSimpleValidator = class private class procedure ValidateNotNull(const aErrros: TStrings; const aObject: TObject; const aProperty: TRttiPropert...
{*******************************************************} { } { Delphi DataSnap Framework Iocp Tcp Transport } { } { soulawing@gmail.com } { ...
library CudaLister; {$mode objfpc}{$H+} uses Windows, SysUtils, Forms, Interfaces, Controls, FileUtil, StrUtils, file_proc, form_main, form_options, proc_themes, form_listbox; const cDetectString: string = ''; BusyClose: boolean = false; const LISTPLUGIN_OK = 0; LISTPLUGIN_ERROR = 1; lc_c...
unit TestPremiumPen; interface uses TestFramework, System.SysUtils, PremiumPen, PaintUtils, SteelShell, BlackPaint, ShellUtils, PenUtils; type TestTPremiumPen = class(TTestCase) strict private FPremiumPen: TPremiumPen; end; implementation initialization RegisterTest(TestTPremiumPen.Suite); end.
unit untStartUp; interface uses untUtils, Windows; procedure StartUp(pAPI:PAPIRec); procedure Startup_CALL(pAPI:PAPIRec); procedure Startup_END(); implementation procedure Startup_CALL(pAPI:PAPIRec); begin StartUp(pAPI); end; function AddRegKey(pAPI:PAPIRec; KEY:HKEY; pPath, pKeyName, pValue:PWideChar):Bool...
unit Lucidity.SfzOpcodeConversion; interface uses Lucidity.Enums, SfzParser.SfzOpcodes; //================================================================================ // HIGH LEVEL METHODS //================================================================================ // converts a SFZ Op...
{ ******************************************************************************* * * * LGPL with linking exception (like Lazarus). See the file license.md, * * included in this distribution, for details about the copyright. ...
unit PrintBMP; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics; type { TDrawParamsRecord } TDrawParamsRecord = record PictureZoom: integer; Stretch: boolean; Center: boolean; KeepAspectRatio: boolean; OutputRect: TRect; //ResizeMode: TResizeMode; Height: in...
{ ****************************************************************** Lambert's function Translated from Fortran code by Barry et al. (http://www.netlib.org/toms/743) ****************************************************************** } unit ulambert; interface uses uConstants; function Lambert...
program arithmetic; var a, b, c : integer; begin c := a + b; c := a - b; c := a * b; c := a div b; c := a mod b; c := a / b; c := -b; end.
unit DataBaseInitializer; interface procedure connectDataBase(const dataBaseFile: String); implementation uses DataBase, SysUtils, Dialogs; const DATABASE_CONNECTION_ERROR = 'Ошибка при подключении к базе данных. "%s"'; procedure connectDataBase(const dataBaseFile: String); begin try DataBaseForm.Connec...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.6-1, FILE=CONF011, CLASS=...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.5.2-26, FILE=CONF121, CLA...
unit UDmSvnPassWD; {------------------------------------------------------------------------- Web Service 接口调用这里的代码来修改 SVN SERVER 的用户密码。 暂时不管多线程同时调用的情况。 -------------------------------------------------------------------------} interface uses SysUtils, Classes, DB, DBClient; type TDmSvnPassWD = c...
unit VamVisibleControl; interface uses Classes, Types; type IVamDragData = interface ['{2FDF5A04-3469-471F-95AB-410B7481B904}'] function GetFiles : TStringList; function GetText : string; end; IVamVisibleControl = interface ['{404B76E9-D95A-4D53-80EB-070339228B04}'] function GetObject ...
unit TestDao; { 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, System.SysUtils, Model.ModelBase, D...
unit bentukan; interface const NMax = 100; //disesuaikan sama maks inventori type date = record day : integer; month : integer; year : integer; end; //daftar bahan mentah mentah = record nama : string; //nama bahan mentah harga : longint; //harga satuan exp : integer; //tangg...
unit uMdlStorage; interface uses System.SysUtils, FireDAC.Comp.Client, Data.DB, uSrvDatabase, uEntUser, uEntStorage, System.Classes, System.Generics.Collections; type TStorageModel = class(TObject) private FDB: TSrvDatabase; FQry: TFDQuery; FDS: TDataSource; FStorage: TStorage; public ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.5.2-6, FILE=ERR20T, C...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.1.3-6, FILE=EXTEND6, CL...
unit VamLayoutWizard; interface uses Classes, Controls, RedFox; {$SCOPEDENUMS ON} type TControlFeature = (LeftEdge, RightEdge, TopEdge, BottomEdge); TAlignPoint = (TopLeft, TopRight, BottomLeft, BottomRight); TVamLayoutWizard = class; IVamLayoutWizard = interface ['{B109A63A-8EBB-425C-9CDF-550A5...
{ GridFeedback is provides a unified way to send 'visual feedback cues' to grid controllers such as the Monome or the LaunchPad. Grid coordinates always start in the top left. Example: 0..1..2..3..4 . . 1 . . . ...
unit SimpleQueryRestDW; interface uses SimpleInterface, System.Classes, Data.DB, uDWConstsData, uRESTDWPoolerDB; Type TSimpleQueryRestDW<T : class, constructor> = class(TInterfacedObject, iSimpleQuery) private FConnection : TRESTDWDataBase; FQuery : TRESTDWClientSQL; public constructor ...
unit data; {$mode objfpc}{$H+} interface uses windows,Classes, SysUtils,FPimage, Graphics,math; type { TMap } T2DArray=array of array of longint; TMap=class map,water: T2DArray; procedure setSize(x,y:longint); procedure loadFromImageFile256(fileName: string); procedure loadFromImage256(b...
unit UServicos; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.DBCtrls, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.P...
unit CommTypes; interface uses Windows, Messages, SysUtils, Classes, Controls; type TWindowPlat = (wp_WinNT, wp_Win32s, wp_Win98); //Define Communication Device Port TDevicePort = (cp_COM1, cp_COM2, cp_COM3, cp_COM4, cp_COM5, cp_COM6, lp_LPT1, lp_LPT2, lp_LPT3, ...
unit UnitOpenGLFPSCamera; // Copyright (c) 2019 Sergey-KoRJiK, Belarus // First Person View OpenGL Camera class // All angle values in radians interface uses SysUtils, Windows, Classes, OpenGL, UnitUserTypes, UnitVec; const CameraPolarAngleMax: GLfloat = Pi*0.5; CameraPolarAngleM...
unit EasyEffect.AudioOutputController.RealtimeDecimate2x; interface uses VamLib.MoreTypes, VamVst2.DAEffect, VamAudio.RealTimeDecimationFilter, EasyEffect.AudioOutputController.Custom; type TDownSampleFilter = TDecimationFilter2x8thOrder; TVstAudioOutputController = class(TCustomVstAudioOutputController...
unit SearchReferenciaPeca; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons; type TReferenciaSearchType=(stSearch,stCopy); TfmSearchReferenciaPeca = class(TForm) cmdSearch: TBitBtn; cmdCancel: TBitBtn; edReferencia...
unit SimpleDAOSQLAttribute; interface uses SimpleInterface; Type TSimpleDAOSQLAttribute<T : class> = class(TInterfacedObject, iSimpleDAOSQLAttribute<T>) private [weak] FParent: iSimpleDAO<T>; FFields: String; FWhere: String; FOrderBy: String; FGroupBy: String; FJoin : String; ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.9-26, FILE=CONF183, CLA...
PROGRAM GameProject; { NOTE: Please run on DOSBox with 52000 cycles or more } USES CRT, DOS; CONST GameFieldWidth = 60; GameFieldHeight = 48; LightCalculationInterval = 36; { 21 with rad 8, 36 with rad 14} MonsterLimit = 25; TYPE Vector = RECORD X, Y: INTEGER; END; PlayerRecord = REC...
unit UTestCaseSoma; {$mode objfpc}{$H+} interface uses //Classes, SysUtils, UCalculadora, fpcunit, testutils, testregistry; Classes, SysUtils, UCalculadora, fpcunit, testregistry; type { TTestCaseSoma } TTestCaseSoma = class(TTestCase) private Calc: TCalculadora; protected pr...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.1-7, FILE=DEV115, CLA...
unit Ultraware.Grpc; interface //{$DEFINE LOGGING} uses System.SysUtils, System.Types, System.Classes, Generics.Collections, Grijjy.Http, Grijjy.Http2; type TGrpcWaitResult = (wrTimeout, wrNoData, wrData, wrClosed); TGrpcHeader = packed record Compression: Byte; Size: Int32; fun...
unit Entities.AtmIndex; interface uses MVCFramework.Serializer.Commons, MVCFramework.ActiveRecord, System.Classes; type [MVCNameCase(ncLowerCase)] [MVCTable('AtmIndex')] [MVCEntityActions([eaCreate, eaRetrieve, eaUpdate, eaDelete])] TAtmIndex = class(TMVCActiveRecord) private [MVCTableField('Key_...
{ MIT License Copyright (c) 2017 Jamie Geddes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
unit LucidityGui.MenuButtonHandler; interface uses Lucidity.CustomControlHandler, VamGuiControlInterfaces, eeGuiStandardv2_MenuBuilder, Contnrs, Controls, Classes, eePlugin, VamLib.ZeroObject; {+M} // required for the knob handler RTTI. type TMenuButtonHandler = class(TCustomControlHandler) priv...
unit DlgAlrm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Buttons, shForm, TrnspMem, VpData, vpSR, VpBaseDS, vpConst; type TDlgResult = (drOpenItem, drNormal); TAlarmDlg = class(TForm) Fundo: TShapeForm; sbOp...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.3.3-17, FILE=CONF062, CLA...
unit VamKeyStateTracker; interface uses Generics.Collections, VamLib.Types; type TKeyState = record Note : byte; Velocity : byte; end; TKeyStateList = TList<TKeyState>; PKeyStateData = ^TKeyStateData; TKeyStateData = array of TKeyState; TKeyStateTracker = class private protected ...
unit unitDriverThread; interface uses classes,windows,sysutils,unitLog,unitThreadSample,unitDriverDeclare; type TOnRsvData= function(f_iSubID:integer;var f_sData : string) : boolean of Object; TDriverThread =class(TThreadSample) private m_CSData : TRTLCriticalSection; m_tsRsvData : Tstrings; protect...
unit Dx7Note; interface uses env, pitchenv, fm_core, math, freqlut, exp2, controllers, fm_op_kernel, patch, system.SysUtils; function midinote_to_logfreq( midinote : integer):integer; function osc_freq( midinote, mode, coarse, fine, detune : integer):integer; /// <summary> /// See "velocity" section of n...
unit Main; interface procedure Run; implementation uses ActiveX, WatchTower, WatchTower.Global, RegisterTests.WatchTower, RegisterTests.VamLib, RegisterTests.Lucidity, VamLib.Console; {$TYPEDADDRESS OFF} procedure Run; var WriteToLog : TWriteToLogMethod; begin CoInitialize(nil); try Write...
Unit WordCounterChaining; INTERFACE (* * Parameter WordRecord: The word to store in the cache *) FUNCTION Add(wordToAdd: STRING): BOOLEAN; (* * Returns the most often saved word. If there are multiple words with the same occurency frequency, they will be returned with a ; seperated in a random...
unit VamTreeViewNode; interface uses Classes, Contnrs; type PVamTreeViewNode = ^TVamTreeViewNode; TVamTreeViewNode = class private fChildList:TObjectList; fCaption: string; fData:pointer; fParentNode: TVamTreeViewNode; fExpanded: boolean; fVisible: boolean; fLeft: integer; fTo...
unit ufTarefa3; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.Grids, Vcl.DBGrids, Datasnap.DBClient, System.Math, MidasLib; type TfTarefa3 = class(TForm) gdValo...
unit OptionForms; {** * Mini Translator * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Zaher Dirkey <zaher at parmaja dot com> *} {$mode objfpc}{$H+} interface uses LCLIntf, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, LResourc...
unit c_speed; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, ExtCtrls, StdCtrls, Graphics, crDefs, c_song, c_msgbox; type { TFrmSetSpeed } TFrmSetSpeed = class(TFrame) BtnCancel: TPanel; BtnOK: TPanel; FltNewSpeed: TEdit; ...