text
stringlengths
14
6.51M
unit Common; interface uses SysUtils, ActiveX, Winsock, Classes; const strEncryptCode : String = 'VZHLEPDQKYMGSOJX'; type StringArray = array of string; function Split(const Source: string; ASplit: string): StringArray; function SplitToStringList(const Source: string; ASplit: string): TStrings; o...
unit util_utf8; interface uses Windows; type UTF8String = AnsiString; function AnsiToWide(const S: AnsiString): WideString; function WideToUTF8(const WS: WideString): UTF8String; function AnsiToUTF8(const S: AnsiString): UTF8String; function UTF8ToWide(const US: UTF8String): WideString; function WideTo...
unit Grijjy.FBSDK.Android; { Provides class abstraction for the Facebook SDK libraries for Android } interface uses System.SysUtils, System.Messaging, FMX.Platform, Androidapi.JNI, Androidapi.JNI.App, Androidapi.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.Os, Androidapi.JNI.GraphicsContentV...
{Из последовательности символов, записанной в текстовом файле, построить бинарное дерево поиска. Распечатать все листья дерева} program NumTree; type Elem = char; BTree = ^Uz; Uz = record data: Elem; left, right: BTree; end; procedure AddElem(var root: BTree; el: Elem);//добавление элемента в дерево ...
unit EditRatePriceFrm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, DBClient, StdCtrls, DBCtrls, Mask, RzEdit, RzDBEdit, RzButton, RzLabel, ExtCtrls,CommonLIB, RzPanel; type TfrmEditRatePrice = class(TForm) RzPanel1: TRzPanel; RzLabel1: TRzLab...
(*----------------------------------------------------------------------------* * Direct3D sample from DirectX 9.0 SDK December 2006 * * Delphi adaptation by Alexey Barkovoy (e-mail: directx@clootie.ru) * * * ...
unit Mt3dmsRctWriterUnit; interface uses CustomModflowWriterUnit, ModflowPackageSelectionUnit, Forms, PhastModelUnit; type TMt3dmsRctWriter = class(TCustomModflowWriter) private ISOTHM: Integer; IREACT: Integer; IGETSC: Integer; procedure WriteDataSet1; procedure WriteDataSet2A; procedu...
unit uNomnFilter; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, uResources, cxLookAndFeelPainters, StdCtrls, cxButtons, cxSpinEdit, cxControls, cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, DB, FIBDataSet, pFIBDataSet, FR_Class, FR_DS...
unit uAtributos; interface uses uInterfaces, uTypes; type TMVVMCustomAttribute = class(TCustomAttribute) end; ViewForVM = class(TMVVMCustomAttribute) strict private FVMInterface: TGUID; FVMClass: TViewModelClass; FInstanceType: EInstanceType; public constructor Create(AInterfaceID: TGUID...
unit uMainForm; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.Edit, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts, FMX.ListBox, Androidapi.JNIBridge, Androidapi.JNI.Embarcadero, And...
unit ComponentTreeView; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ImgList, TypInfo, Menus; type TComponentTreeFilterEvent = function(inObject: TObject): Boolean of object; // TComponentTreeForm = class(TForm) TreeView: TTreeView;...
unit RectangularUnitControl; interface uses Math, TypeControl, UnitControl; type TRectangularUnit = class (TUnit) private FWidth: Double; FHeight: Double; function GetWidth: Double; function GetHeight: Double; public property Width: Double read GetWidth; property Height: Double read ...
{ StringOps Hotkey: Ctrl+R } unit UserScript; var frmSearch: TForm; sElementPath: String; bProperCase: Boolean; bSentenceCase: Boolean; bModify: Boolean; sQuerySearch: String; sQueryReplace: String; sQueryPrefix: String; sQuerySuffix: String; bCaseSensitive: Boolean; frmModalResult: TMo...
unit cn_dt_Raport_Unit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ibase, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, cxCheckBox, cxTextEdit, cxCurrencyEdit, FIBQuery, pFIBQuery, pFIBStoredProc, FIBDataSet, ...
{ SuperMaximo GameLibrary : Audio unit by Max Foster License : http://creativecommons.org/licenses/by/3.0/ } unit Audio; {$mode objfpc}{$H+} interface //Initialise audio, with a specific number of audio channels procedure initAudio(channels : word = 16); procedure quitAudio; //Set a sound channel to simulate coming...
unit EcranElevage; interface uses Variables; { Affichage de l'écran et appel des fonctions & procédures associées } procedure afficher(Joueur : TJoueur); { Vérifie l'état d'avancement d'une construction et met à jour les variables une fois celle-ci terminée. } procedure majConstruction(Joueur : TJoueu...
unit UMySQLCheck; interface uses SysUtils, Ils.Logger, ZConnection, uADCompClient, Ils.MySql.Conf; function CheckTryRepairMySQL( const AConnection: TZConnection ): Boolean; overload; function CheckTryRepairMySQL( const AConnection: TADConnection ): Boolean; overload; implementation function CheckTryRepairM...
unit TimeLineBar; interface uses SysUtils, Classes, Controls, Types; type TTimeLineBar = class(TGraphicControl) // KeyFrameWidth private m_nCurrentLeft : Integer; m_nGraduationHeight : Integer; { Private declarations } protected { Protected declarations } procedure Paint; override; publ...
unit SDFATBootSectorPropertiesDlg; interface uses Classes, Controls, Dialogs, Forms, Graphics, Messages, SDFilesystem_FAT, SDUForms, StdCtrls, SysUtils, Variants, Windows; type TSDFATBootSectorPropertiesDialog = class (TSDUForm) Label1: TLabel; Label2: TLa...
unit UnitServices; interface uses StrUtils,Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, ImgList, Menus, UnitMain, sSkinProvider, UnitConexao; type TFormServices = class(TForm) StatusBar1: TStatusBar; AdvListView1: TListView; PopupMenu1: TPopupMenu; ...
unit uClassAuditoria; interface type TAuditoria = class private FDataAtualizacao: TDateTime; FDataCadastro: TDateTime; FDataMovimento: TDateTime; FCodigoEmpresa: integer; procedure SetCodigoEmpresa(const Value: integer); procedure SetDataAtualizacao(const Value: TDateTime); procedure Se...
Unit Font; Interface Procedure Print_Char(Chr:Char); {gibt Zeichen auf Mode X aus} Procedure Print_String(Str:String); {gibt String auf Mode X aus} Procedure Scrl_Move; {bewegt sichtbaren Teil des Scrolly nach links} Procedure Scrl_Append; {h„ngt am rechten Bildrand neue Daten an Scrolly an} Var Scrl_Y:Word; ...
unit Mailbox; interface uses Contnrs, Being; type TMail = class public ID : LongWord; SenderID : LongWord; SenderName: String; ReceiverID : LongWord; ReceiverName : String; SendTime : LongWord; Title : String; Content : String; Read : Boolean; end; TMailBox = class priv...
unit SQLGenerator; interface uses MetaData, System.SysUtils; function GetJoin(ATag: Integer): string; function GetSelectionJoin(ATag: Integer): string; function GetJoinWhere(Count: Integer; ATag: Integer; Params: string; Query: string): string; function GetSelectClause(ATag: Integer): string; functio...
unit eUsusario.View.Conexao.Interfaces; interface uses Data.DB; Type iConexao = interface ['{C274FEBB-916D-43DB-BF6E-790E3622270E}'] function Connection : TCustomConnection; end; iQuery = interface ['{733D3424-1A9A-4948-ADC6-6CEA4B6F4B7C}'] function SQL(Value : String) : iQuery; function DataSet : TDat...
(* Design and define a class hierarchy, using composition, and test it. The first object is a real number with a floating point. Its parameters are its value and format. Its methods are the constructor and a function, which determines the number of digits after the floating point. The second object is a set of numb...
{ ============================================ Software Name : RFID_ACCESS ============================================ } { ******************************************** } { Written By WalWalWalides } { CopyRight © 2019 } { Email : WalWalWalides@gmail.com ...
//****************************************************************************** // Пакет для добавленя, изменения, удаления данных о свойствах людей // параметры: ID - идентификатор, если добавление, то идентификатор человека, иначе // идентификатор свойства человека. //************************************************...
unit PE.Parser.Import; interface uses System.Generics.Collections, System.SysUtils, PE.Common, PE.Types, PE.Types.Imports, PE.Types.FileHeader, PE.Imports, PE.Imports.Func, PE.Imports.Lib, PE.Utils; type TPEImportParser = class(TPEParser) public function Parse: TParse...
unit InfluxDB.Core; interface uses System.SysUtils, System.Classes, System.StrUtils, System.Net.HttpClient, System.Net.HttpClientComponent, System.NetEncoding, System.Generics.Collections; type TRequestMethod = (GET, POST, PUT, DELETE, PATCH); TRequest = class abstract (TInterfacedObject) privat...
{ SuperMaximo GameLibrary : Graphical Asset class (sprites, models and gameObjects) unit by Max Foster License : http://creativecommons.org/licenses/by/3.0/ } unit GraphicalAssetClasses; {$mode objfpc}{$H+} interface uses SDL, dglOpenGL, Display, ShaderClass; type pSpriteDrawParams = ^tSpriteDrawParams; PSprite...
namespace GLExample; interface uses rtl, GlHelper, OpenGL; type GL_Example_2 = class(IAppInterface) private // fTexture : Texture; shader : Shader; fVertexArray : VertexArray; FTexture1: Texture; FTexture2: Texture; FUniformOurTexture1: GLint; FUniformOurTexture2: GLint; pub...
unit uPhotoShareInterfaces; interface uses uMemory, Generics.Collections, Classes, SyncObjs, SysUtils, Graphics, uInternetUtils; const PHOTO_PROVIDER_FEATURE_ALBUMS = '{06213CD9-35C9-4FA8-B21D-4D7628347DEC}'; PHOTO_PROVIDER_FEATURE_PRIVATE_ITEMS = '{0D4C568C-C3E7-45DD-9E61-47D...
unit TpAnchor; interface uses Windows, Classes, Controls, StdCtrls, ExtCtrls, Graphics, Messages, SysUtils, Types, ThTag, ThAnchor, TpControls; type TTpAnchor = class(TThAnchor) private FClient: TComponent; protected procedure Tag(inTag: TThTag); override; public constructor Create(inC...
(* Generates a grid based dungeon level *) unit grid_dungeon; {$mode objfpc}{$H+} interface uses globalutils, map; type coordinates = record x, y: smallint; end; var r, c, i, p, t, listLength, firstHalf, lastHalf: smallint; dungeonArray: array[1..globalutils.MAXROWS, 1..globalutils.MAXCOLUMNS] of ch...
program questao15; { Autor: Hugo Deiró Data: 03/06/2012 - Este programa calcula o salário líquido de uma pessoa; } const INSS = 0.08; Sindicato = 0.05; IR = 0.11; var horas_trabalhadas : integer; valor_hora : real; begin write('Insira o número de horas trabalhadas no mês: '); readln(horas_trabalh...
unit UnitFavs; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, sButton, Vcl.Buttons, sBitBtn, sEdit, sListBox, sCheckListBox, sSkinProvider; type TFavForm = class(TForm) sSkinProvider1: TsS...
unit vNoteCreator_MainForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, MyDialogs, MySkinCtrls, MySkinButtons, MySkinTheme, StdCtrls, MySkinEditors, MySkinEngine, AIMP_BaseSysUtils, AnsiStrings, JwaBluetoothAPIs, JwaBtHDef, Menus, MySkinMenus, WinSock, Jw...
{ GRAFE LABORATOR II MOLDOVAN FLORIN 223 I.TEXTUL PROBLEMEI. Se da un graf in care arcele au diferite valori. Sa se conceapa un program care determina un drum de valoare minima de la varful p la varful q (p,q-oarecare) folosind algoritmul lui Moore-Dijkstra intr-un graf oarecar...
{** helper functions to reduce the verbosity of the main form} unit cXML; interface uses classes,sysutils, XDOM_3_1, cGLGridImportFn,cGLCoordinateAxes,GLObjects, cUtilities; procedure CreateBooleanElement(DD:TDOMDocument;p:TDOMElement; sName:string;bBool:boolean); procedure CreateFloatElement(DD:TDO...
unit Main_U; // Description: // By Sarah Dean // Email: sdean12@sdean12.org // WWW: http://www.SDean12.org/ // // ----------------------------------------------------------------------------- // interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Sp...
unit uTelaModel; interface uses uGenericEntity; type [TableName('tela')] TTelaModel = class(TGenericEntity) private FCodigo: Integer; FNomeclasse: String; FDescricaoTela: String; procedure SetCodigo(const Value: Integer); procedure SetDescricaoTela(const Value: String); procedu...
unit TestCaseBase; interface uses TestFramework, SysUtils, FutureWindows; type TTestCaseBase = class(TTestCase, IExceptionHandler) strict private FDeferedException: Exception; FDeferedExceptAddr: Pointer; private procedure HandleException(AExceptObject: TObject; AExceptAddr: Pointer); protec...
{================================================================================ Copyright (C) 1997-2002 Mills Enterprise Unit : rmScrnCtrls Purpose : This is a basic unit containing the controls that are used by the rmControls for various types of dropdowns. Date : 09-24-2000 Author : Ry...
PROGRAM HeatIllness (Input,Output); {********************************************************************** Author: Scott Janousek Student ID: 4361106 Program Assignment 1 Due: Monday March 8, 1993 Section: 1 MWF 10:10 Username: ScottJ Instructor: Jeff Clouse Program Description: This is provides a med...
{*****************************************************************} {* PROTECTION PLUS 4.4 } {* } {* Global constants and declare statements for Delphi 2-5 } {* Uses SKCA32.DLL ...
unit LA.LU.Main; interface uses System.SysUtils, LA.Matrix, LA.LU; procedure Main; implementation procedure Main; var a1, a2, a3: TMatrix; lu1, lu2, lu3: T_LU; begin a1 := TMatrix.Create([[1, 2, 3], [4, 5, 6], [3, -3, 5]]); lu1 := LU(a1); Writeln(lu1.L^.ToString); Writeln(lu1.U^.ToString); Wri...
//------------------------------------------------------------------------------ //BeingList UNIT //------------------------------------------------------------------------------ // What it does - // A list of TCharacters // // Changes - // [2008/...
unit Main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, GLWin32Viewer, GLCrossPlatform, GLBaseClasses, GLScene, GLCoordinates, GLObjects, GLCadencer, GLSimpleNavigation, GLGraph, GLGeomObjects; type TForm1 = class(TForm) GLSceneViewer1: TGL...
unit uPrintCashReg; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Db, DBTables, ADODB; const TICKET_CASH_OPEN = 1; TICKET_CASH_CLOSE = 2; TICKET_CASH_PETTY = 3; TICKET_CASH_ADD = 4; type TRegCash = record AOpenDate: ...
unit ThDataConnection; interface uses SysUtils, Classes, Forms, ADODB, Db, ThComponent; type TThConnectionString = string; // TThConnectionStore = class(TThComponent) private FConnectionStrings: TStringList; FFilename: string; protected procedure SetConnectionStrings(const Value: TStri...
unit FicDefAc; {Version Delphi} { La description de l'entŕte est dans fichac1.doc } { Pour imprimer les offsets, on peut utiliser offsetAC.Pas } INTERFACE {$IFDEF FPC} {$mode delphi} {$DEFINE AcqElphy2} {$A1} {$Z1} {$ENDIF} uses util1,dtf0; const maxMarqueAcq=100; type TypeMarqueAcq=record l:...
(* Category: SWAG Title: MATH ROUTINES Original name: 0015.PAS Description: PI1.PAS Author: SWAG SUPPORT TEAM Date: 05-28-93 13:50 *) Program CalcPI(input, output); { Not the most efficient Program I've ever written. Mostly it's quick and dirty. The infinite series is very effective converging very qui...
unit feli_constants; interface const configFilePath = 'ets.cfg.json'; logFilePath = 'ets.log'; chars = 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVQXYZ1234567890_-'; lineSeparator = #13#10; eventsFilePath = 'database/events.json'; usersFilePath = 'database/users.json'; stackTraceDepthP...
//Connexion V1.1 // //Révision 2011/10/04 //Patrick Lafrance 2011/09/17 unit uniteConnexion; interface uses SysUtils, StrUtils, SocketUnit; type //Connexion TCP client ou serveur à une adresse et un port quelconque //Permet de recevoir ou envoyer une ligne de texte à la fois. //Il est impor...
namespace UINavigationController; interface uses UIKit; type [IBObject] AppDelegate = class(IUIApplicationDelegate) private public property window: UIWindow; method application(application: UIApplication) didFinishLaunchingWithOptions(launchOptions: NSDictionary): Boolean; meth...
{------------------------------------ 功能说明:对象工厂接口,对象工程通过此接口来创建对象 创建日期:2014/08/12 作者:mx 版权:mx -------------------------------------} unit uFactoryFormIntf; interface uses Classes, Controls, Forms, uParamObject, uDefCom; type //业务窗体接口 IFormIntf = interface ['{2237D50E-2D63-4FF3-8E42-96AD31403C02}'] ...
unit ibSHRegisterActions; interface uses SysUtils, Classes, Controls, Dialogs, StrUtils, SHDesignIntf, ibSHDesignIntf; type IibSHRegisterServerAction = interface ['{596F42B0-5C53-482C-9A2A-540ED742978F}'] end; IibSHRegisterDatabaseAction = interface ['{37FB7438-3281-4ECD-90FD-84EA7E63A9B4}...
{*******************************************************} { } { Borland Delphi Visual Component Library } { } { Copyright (c) 1997, 1999 Inprise Corporation } { ...
unit UnitMenuDateForm; interface uses Winapi.Windows, Winapi.Messages, System.DateUtils, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.ComCtrls, Vcl.StdCtrls, Vcl.Menus, Vcl.ExtCtrls, Vcl.PlatformDefaultStyleActnCtrls, Vcl.ActnPopup, u...
unit uJpegUtils; interface uses System.Math, System.Classes, Vcl.Imaging.jpeg, Vcl.Graphics, uMemory, uSettings, uBitmapUtils; type TJPEGX = class(TJpegImage) public function InnerBitmap: TBitmap; end; type TCompresJPEGToSizeCallback = procedure(CurrentSize, Compres...
unit BZK2_Sector; interface uses SysUtils,Voxel_Engine; type TBZKFacesDirection = (bfdNorth,bfdEast,bfdSouth,bfdWest,bfdFloor,bfdCeiling); TVector4i = record X, Y, Z, W : integer; end; TBZK2Sector = class public // Constructors constructo...
//*******************************************************// // // // DelphiFlash.com // // Copyright (c) 2004 FeatherySoft, Inc. // // info@delphiflash.com // // ...
// // Generated by JavaToPas v1.5 20171018 - 171221 //////////////////////////////////////////////////////////////////////////////// unit android.widget.SimpleCursorAdapter; interface uses AndroidAPI.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText, android.content.ContentProvider, ...
procedure MouseParaControle(Controle: TControl); // // Posiciona o mouse em cima do objeto definido em Controle // // use-a no evento OnShow do form: // // MouseParaControle(button1); // var IrPara: TPoint; begin IrPara.X := Controle.Left + (Controle.Width div 2); IrPara.Y := Controle.Top + (Controle.Height div 2...
{ Laz-Model Copyright (C) 2002 Eldean AB, Peter Söderman, Ville Krumlinde Portions (C) 2016 Peter Dyson. Initial Lazarus port This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either versi...
unit UPlanoContasVO; interface uses Atributos, Classes, Constantes, Generics.Collections, SysUtils, UGenericVO, UCondominioVO, UUnidadeVO, UPessoasVO; type [TEntity] [TTable('PlanoContas')] TPlanoContasVO = class(TGenericVO) private FidPlanoContas : Integer; FidConta: Integer; FdsConta : string; ...
PROGRAM birthday; { This program is a small example of the use of the random access facilities in the file RANDREC.PAS. In fact this simple program could be written more efficiently using several ordinary sequential files. } CONST rsize=38; {the record size : calculated below } TYPE name= ARRAY...
unit InfluxDB.Request; interface uses System.SysUtils, System.Net.HttpClient, System.NetEncoding, System.Generics.Collections, System.JSON, System.Variants, System.RTTI, InfluxDB.Core, InfluxDB.Interfaces, System.DateUtils; type TInfluxResult = class(TInterfacedObject, IInfluxResult) private...
unit Utils; interface procedure PrintSwitchValue(const Switch, Value: string); inline; implementation procedure PrintSwitchValue(const Switch, Value: string); inline; begin WriteLn(#9, Switch, #9, Value); end; end.
unit uModel; interface type tUserInfo = class private FPassword: String; FUser: string; FRole: string; FLoginTime: TDateTime; procedure SetPassword(const Value: String); procedure SetUser(const Value: string); procedure SetRole(const Value: string); procedure SetLoginTime(const...
//------------------------------------------------------------------------------ //MapQueries UNIT //------------------------------------------------------------------------------ // What it does- // Map related database routines // // Changes - // Febru...
unit DBUnic; interface uses SysUtils, stmDatabase2, stmObj, stmPG, stmMemo1, DBObjects, DBModels, DBManagers, DBQuerySets, ZDbcIntfs, Classes; procedure initCache; function model_is_installed:Boolean; type ...
{***************************************************************************} { } { Delphi Package Manager - DPM } { } { ...
unit Objekt.DHLDeleteShipmentOrderRequestAPI; interface uses SysUtils, System.Classes, geschaeftskundenversand_api_2, Objekt.DHLVersion; type TDHLDeleteShipmentOrderRequestAPI = class private fRequest: DeleteShipmentOrderRequest; fArray_Of_ShipmentNumber: Array_Of_shipmentNumber; fShipmentNumber: s...
unit MultiThreadingTest; interface uses DUnitX.TestFramework, SysUtils, Classes, Threading, uIntX; type [TestFixture] TMultiThreadingTest = class(TObject) strict private function StartNewShiftMemoryCorruptionTask(): ITask; public [Test] procedure ShiftMemoryCorruptio...
unit docparam; interface uses Classes, SysUtils; const cname_goods_id = 'GoodsId'; cname_goods_name = 'GoodsName'; cname_goods_article = 'GoodsArticle'; cname_goods_count = 'GoodsCount'; cname_goods_cost = 'GoodsCost'; cname_goods_size = 'GoodsSize'; cname_shipment_id = 'ShipmentId'; cn...
unit uSQLFile; interface uses Windows, Messages, SysUtils, Classes, Controls, Dialogs, StdCtrls; { TReadSQLScript class } type TReadSQLScript = class private fFileStrings: TStrings; fScriptStrings: TStrings; fFlag: string; fIndex: Integer; fScriptCount: Integer; public constructor Cr...
(* Player setup and stats *) unit player; {$mode objfpc}{$H+} interface uses Graphics, SysUtils, plot_gen; type (* Store information about the player *) Creature = record currentHP, maxHP, attack, defense, posX, posY, visionRange: smallint; experience: integer; playerName, title: string; (* st...
program asciibattle; uses Crt, CrtInterface, SysUtils, Game, Physics, BattleField, Geometry, Config, StaticConfig; type ConfigType = (CGAME, CMAP, CFORT); { Returns the filename of a config file of given type and name } function config_filename(t: ConfigType; name: ansistring) : ansistring; var dir: ansistring;...
unit AST.Delphi.DataTypes; interface { Elementary | |--Ordinal | | | |- Integer | |- Boolean | |- Enumerated | |- Character | |- Subrange | |-- Sets |-- Real |-- String |-- Variant...
unit JMC_Parts; interface uses SysUtils; function ReadPart(const S: string; const Index: Integer; const Sep: Char): string; overload; function ReadPart(const S: string; const Index: Integer; const Sep: string): string; overload; function WritePart(var S: string; const Part: string; const Index: Integer; c...
// Copyright 2014 Asbjørn Heid // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
{ Copyright (c) 2020 Adrian Siekierka 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, ...
unit uRtfmtFileReader; interface uses Classes,SysUtils,Contnrs, DateUtils,uLKJRuntimeFile,uVSConst, Windows,uRtFileReaderBase; const FILEHEAD_LENGTH = 3; //文件头长度 FLAG_SETINFO_TRIANTYPE = $8121; //车型标志 (设定) FLAG_SETINFO_TRIANTYPE_IC = $8221; //车型标志 (IC设定) FLAG_SETINFO_TRIANTYPE_JIAN ...
program HowToRespondToKeystrokes; uses SwinGame, sgTypes; procedure Main(); var clr: Color; begin OpenGraphicsWindow('Keyboard Input', 240, 180); LoadDefaultColors(); clr := RGBAColor(255, 255, 255, 64); ClearScreen(ColorWhite); repeat // The game loop... ProcessEvents();...
unit Controller; interface uses SysUtils, Classes, ActnList, Dialogs, Forms, Graphics, LrDocument, Project, Config; type TControllerModule = class(TDataModule) ActionList1: TActionList; PublishAction: TAction; SaveAsAction: TAction; OpenAction: TAction; OpenDialog: TOpenDialog; SaveDi...
unit gr_AccountData_MainForm; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, cxStyles, cxCustomData, cxGraphics, cxFilter, cxData, cxDataStorage, cxEdit, DB, cxDBData, cxCheckBox, dxBar, dxBarExtItems, cxSplitter, cxLabel, cxContainer, cxTextEdit, cxMaskEdit...
unit Ils.Utils.License; interface uses IniFiles, Classes, LbCipher, LbClass, LbAsym, LbRSA, SysUtils, LbUtils, Ils.Utils, Ils.Logger, JwaIpHlpApi, JwaIpTypes, JwaWinError, StrUtils; type TIlsLicenseChecker = class protected const CPublicKey = '30818802818069521B3AB7C725FA2F9B90F763F4751B11CAD053E...
unit WdxFieldsProc; //Юнит для плагина Super_WDX interface uses StdCtrls,Windows,SysUtils,ContPlug,Classes; type TContentGetSupportedField = function(FieldIndex: integer; FieldName: pchar; Units: pchar; maxlen: integer): integer; stdcall; TContentGetValue = function(FileName: pchar; FieldIndex, Unit...
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1 = class(TForm) edt: TEdit; Button1: TButton; Memo1: TMemo; procedure FormCreate(Sender: TObject); proce...
unit Objekt.Dateikopieren; interface uses System.SysUtils, System.Classes; type TDateiKopierenProgressEvent = procedure(aFileSize, aBytesTransferred: Int64) of object; TDateiKopierenFileSizeEvent = procedure(aFileSize: Int64) of object; type TDateiKopieren = class private fOnProgress: TDateiKopierenP...
unit ArrayUtils; interface // Converts an input byte array to hexadecimal string representation function GetHexadecimalString(inputArray : array of byte) : String; implementation uses SysUtils; function GetHexadecimalString(inputArray : array of byte) : String; var i : Integer; resultStr : String; begin resu...
(*==========================================================================; * * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved. * * File: d3dtypes.h * Content: Direct3D types include file * * DirectX 5 Delphi adaptation by Erik Unger * (based on Blake Stone's DirectX 3 adaptation) *...
unit uniteLecteurFichierBinaire; interface uses uniteLecteurFichier, sysUtils; type LecteurFichierBinaire = class (LecteurFichier) public //Accesseur du type MIME du fichier déduit de l'extension du fichier. //@return type MIME du fichier. function getType : String; override; //Accesseur du conten...
unit uRawExif; interface uses Classes, Windows, Math, SysUtils, FreeImage, FreeBitmap, GraphicCrypt, Dmitry.Utils.System, uFreeImageIO, uMemory, uExifUtils, uFIRational, uTranslate, uSessionPasswords; type TRAWExifRecord = class(TObject) private FDesc...
program HowToDrawCustomText; uses SwinGame, sgTypes; procedure Main(); begin OpenGraphicsWindow('Draw Custom Text', 800, 600); ClearScreen(); DrawText('You Win!!!', ColorGreen, 300, 200); DrawTextLines('OR DO YOU???', ColorRed, ColorWhite, 'Arial', 18, AlignCenter, 400, 400, 160, 100); ...
unit RNGTest_U; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls, ExtCtrls, MouseRNG, OTFEFreeOTFE_WizardCommon; type TRNGTest = class(TForm) pbClose: TButton; reReport: TRichEdit; pbGenerateRandomData: TButton; pbClear:...
(* Category: SWAG Title: TEXT FILE MANAGEMENT ROUTINES Original name: 0070.PAS Description: Measures # of lines in textfiles Author: CHRIS AUSTIN Date: 11-22-95 15:49 *) Function Measure(FileName : String) : LongInt; Var Counter : LongInt; FileHandle: Text; Begin Assign(FileHandle,FileName); ...
unit Unit1; (*WMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWMWM This demo shows how to synchronize checkboxes between the VETree and the VEListview. It tries to mimic the behavior of the MS Backup utility. Based on robleen1's and Jim Kueneman's demo. Rules: - When a VETree n...