text stringlengths 14 6.51M |
|---|
unit ncaFrmTarifa2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxGraphics, cxCustomData, cxStyles, cxTL, cxTextEdit, cxCurrencyEdit,
cxInplaceContainer, cxControls, StdCtrls,
dxBar, cxClasses, cxMaskEdit, cxSpinEdit, cxTimeEdit, cxContainer, cxEdit,
c... |
program parcialjulio18;
const
MAX_LETRAS = 6;
TOTAL_PALABRAS = 4;
type
TLetras = 'a'..'z';
Texto = record
letras : array[1..MAX_LETRAS] of TLetras;
tope : 0 .. MAX_LETRAS;
end;
Diccionario = array[1..TOTAL_PALABRAS] of Texto;
ListaEnt = ^celda;
celda = record
elem:integer;
sig:ListaEnt;
en... |
{ Copyright (C) 1998-2018, written by Shkolnik Mike, Scalabium
E-Mail: mshkolnik@scalabium.com
mshkolnik@yahoo.com
WEB: http://www.scalabium.com
}
unit BrazilCombo;
interface
{$I SMVersion.inc}
uses
Classes, Messages, Windows, Controls, StdCtrls;
type
{ TBrazilStateCombo }
TBrS... |
UNIT FidoUtil;
interface
USES FileUtil; {exists}
CONST
LastReadFileName = 'LASTREAD.';
TYPE
pathstr = STRING[79];
PROCEDURE UpDateLastRead( path : PathStr; MsgNum : WORD);
FUNCTION FindLastRead( path : PathStr) : WORD;
(*********************************************************)
implementation
PROCEDURE Up... |
{*******************************************************}
{ }
{ Delphi FireDAC Framework }
{ FireDAC GUIx Field list editor }
{ }
{ Copyright(c) 2004-2018 Embar... |
unit uOlhaPasta;
interface
uses
Windows, SysUtils, ExtCtrls, classes, controls, StdCtrls, graphics,
Messages, Int64List, SyncObjs, uDirWatch;
type
TFolderEvent = procedure(Sender: TObject; aPrintName:string) of object;
TOlhaPastaThread = class(TThread)
private
fOnNewPrint : TFolderEvent;... |
unit Posting;
interface
uses
Loan, Payment, SysUtils, DateUtils, System.Rtti, Math, PaymentMethod, LoanClassification;
type
TPrincipalDebit = class
strict private
FId: string;
FTerm: smallint;
FAmortization: currency;
FInterestRate: currency;
FReleaseAmount: currency;
FIsDiminishing: bo... |
(*
Name: ValidateKeymanInstalledSystemKeyboards
Copyright: Copyright (C) SIL International.
Documentation:
Description:
Create Date: 13 Jul 2007
Modified Date: 1 Dec 2012
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
Todo... |
unit Threads.SQLExecuter;
interface
uses Windows, SysUtils, Classes, Threads.Base, GMGlobals, GMConst, Math;
const QUERY_PACK_SIZE = 50;
type
TSQLExecuteThread = class(TGMThread)
private
FSQL: TStringList;
FSynch: TMultiReadExclusiveWriteSynchronizer;
function AddSemicolonAndCRLF(const s: string): s... |
unit MetroFiler;
interface
uses
Classes, IniFiles, Graphics,
MetroBase, MetroVisCom;
type
//----------------------------------------------------------------------------
// TMetroFiler is a class with some helper routines for reading/writing
// a network and map from/to a .nwk file
//--------... |
unit MainFORM;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
GhostscriptApi, Vcl.ComCtrls;
type
TfrmMain = class(TForm)
dlgOpen: TOpenDialog;
dlgSave: TSaveDialog;
p... |
(*
* Copyright(c) 2019 Embarcadero Technologies, Inc.
*
* This code was generated by the TaskGen tool from file
* "CommonOptionsTask.xml"
* Version: 26.0.0.0
* Runtime Version: v4.0.30319
* Changes to this file may cause incorrect behavior and will be
* overwritten when the code is regenerated.
*)
unit Comm... |
Program Loop;
Var
i: Integer;
Begin
Writeln('The multiplication table of 3');
For i:=1 to 10 do
Begin
Write(i:2);
Write(' X 3 = ');
Writeln(i*3:2);
End;
End. |
unit uODBase;
interface
uses
Classes, ORFn, uConst;
{ Order Checking }
function AddFillerAppID(const AnID: string): Boolean;
procedure ClearFillerAppList;
{ Ordering Environment }
procedure SetOrderFormIDOnCreate(AFormID: Integer);
function OrderFormIDOnCreate: Integer;
procedure SetOrderEventTypeOnCreate(AType: ... |
unit FC.Trade.ViewTradersDialog;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ufmDialogClose_B, StdCtrls, ExtendControls, ExtCtrls, ComCtrls,
FC.Definitions, ActnList;
type
TfmViewTradersDialog = class(TfmDialogClose_B)
Label1: TLabel;
lvTraders: ... |
unit AssignRights;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BasePopupDetail, RzButton, RzTabs,
Vcl.StdCtrls, RzLabel, Vcl.Imaging.pngimage, Vcl.ExtCtrls, RzPanel, RzLstBox,
RzChkLst, Role, Right, RzCmb... |
unit IdCoderMessageDigest;
interface
uses
Classes,
IdCoder;
type
T64BitRecord = array[0..7] of byte;
T128BitRecord = array[0..15] of byte;
T4x4LongWordRecord = array[0..3] of LongWord;
T4x4x4LongWordRecord = array[0..3] of T4x4LongWordRecord;
T16x4LongWordRecord = array[0..15] of LongWord;
T160BitRe... |
unit netaddrutils;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, character, Math;
type
TAddrOctets = array[0..3] of Byte;
function IsInteger(Value: String): Boolean;
function IsAddress(Address: String): Boolean;
function AddressToOctets(Address: String; var Octets: TAddrOctets): Boolean;
function Octet... |
unit ksLoadingIndicator;
interface
{$I ksComponents.inc}
uses FMX.Forms, Classes, FMX.Controls, FMX.Objects, ksTypes, FMX.Graphics,
FMX.StdCtrls, FMX.Layouts
{$IFDEF IOS}
, iOSapi.UIKit, iOSapi.Foundation
{$ENDIF}
;
type
[ComponentPlatformsAttribute(
pidWin32 or
pidWin64 or
{$IFDEF XE8_OR_N... |
unit TMSrvCtrl;
{
Aestan Tray Menu
Made by Onno Broekmans; visit http://www.xs4all.nl/~broekroo/aetraymenu
for more information.
This work is hereby released into the Public Domain. To view a copy of the
public domain dedication, visit:
http://creativecommons.org/licenses/publicdomain/
or send a let... |
unit uObjectHPGLDrawing;
interface
uses SysUtils, Types, Contnrs, uMyTypes, uObjectFeaturePolyLine, Math;
type
THPGLDrawing = class(TObject)
private
objPolylines: TObjectList;
objMinX, objMinY, objMaxX, objMaxY: double;
objInternalPolylinePointer: integer; // ukazatel na aktualnu polyline (pri ziskav... |
unit SSPTypes;
interface uses SysUtils, Types, Classes;
type
ISSPAny = interface ['{E2D2281E-4B43-49D3-A059-02382B614F9B}']
function getType (): shortint ;
function toString (): WideString ;
function asUTF8String (): AnsiString ;
function asString (): WideString... |
unit UFSearchBase;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls,
Vcl.Imaging.pngimage, Data.DB, Vcl.Grids, Vcl.DBGrids, UISearchController,
FireDAC.Stan.Intf, FireDAC.Stan.Option... |
unit caArrays;
{$INCLUDE ca.inc}
interface
uses
Classes,
SysUtils;
const
cByteSize = SizeOf(Byte);
type
PWord = ^Word;
//----------------------------------------------------------------------------
// TcaBitArray
//-----------------... |
unit DialogUnit;
interface
uses Vcl.Dialogs, System.Classes, Winapi.Windows, System.IOUtils, Vcl.ExtDlgs;
{$WARN SYMBOL_PLATFORM OFF}
type
TFileOpenDialogClass = class of TFileOpenDialog;
TOpenDialogClass = class of TOpenDialog;
TOpenFolderDialog = class(TOpenDialog)
private
procedure DoOnShow(Sender: ... |
(* three.pas *)
(* Three Card Game Paradox *)
(* by Conor Gilmer *)
program three;
var
winning, chosen, remove:integer;
stick, twist, games, num, numRand, numA, numB, numC:cardinal;
stickR, twistR, gamesR:real;
stickpc, twistpc:real;
letter:char;
(* return a random card a number between 1 and 3 *)
f... |
unit Updater;
interface
uses Classes, SysUtils, ExtCtrls, IdBaseComponent, IdComponent,
IdTCPConnection, IdTCPClient, IdHTTP;
type
TStrArray = array of string;
TUpdater = class
private
IdHTTP: TIdHttp;
FCurVersion: string;
FNewVersion: string;
FVersionIndexURI: string;
FFilesList: TStri... |
unit FrameForm; // contains the individual frame display
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls;
type
TfmFrame = class(TFrame)
lblScore: TLabel;
lblBall1: TLabel;
... |
unit uGameItems;
interface
uses
Classes, SysUtils,
uHTMLParser;
type
TPlanetType = (ptPlanet = 1, ptMoon = 3, ptCrashField = 2);
TGameCoords = record
Galaxy: integer;
System: integer;
Planet: integer;
PlType: TPlanetType;
procedure Clear;
procedure Inc; overload;
procedure Inc(GM... |
unit HKCompPacksTypes;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpjson;
type
TDebugType=(DTInfo, DTInfo2, DTInfo3, DTException, DTError);
TOnDebugMessage=procedure(Sender:TObject; aMessage:String;
aDebugType:TDebugType)of object;
function GetJsonStringValue(aJson:TJSONObject; aPath:String)... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUIFontComboBox.pas
// Creator : Steve McDonald
// Merger : Shen Min
// Date : 2003-04-01 V1-V3
// 2003-06-24 V4
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
... |
unit NsLibSSH2Terminal;
interface
uses
StdCtrls, SysUtils, Classes, WinSock, libssh2, NsLibSSH2Session, NsLibSSH2Const,
NsLibSSH2Threads;
type
TExchangerThd = class(TThread)
private
FPoolIndex: Integer;
FExchangeSocket: TSocket;
FChannel: PLIBSSH2_CHANNEL;
// Property getters/setters
... |
unit Processor.PascalUnit;
interface
uses
System.SysUtils,
System.StrUtils;
type
TPascalUnitProcessor = class
const
Aphostrophe = '''';
private
class function FindSignature(const aSource, FieldName: string)
: integer; static;
class function TextLength(const aSource: string; aTextStartIdx:... |
{*******************************************************}
{ }
{ Delphi DBX Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{$MODE FPC}
{$PACKRECORDS C}
unit mosquitto;
{*
Copyright (c) 2010-2019 Roger Light <roger@atchoo.org>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Ec... |
unit uMain;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, uDB, Vcl.StdCtrls, Data.DB, Vcl.Grids, Vcl.DBGrids,
System.Actions, Vcl.ActnList, Vcl.ComCtrls, uController.Interfaces;
type
TOperacao = (opNone, o... |
{ $Log: C:\PROGRAM FILES\GP-VERSION LITE\Archives\Reve64\Source\CBConversionUtils.paV
{
{ Rev 1.0 28/09/03 20:28:22 Dgrava
{ Initial Revision
}
{
Rev 1.2 10-3-2003 21:46:23 DGrava
Little enhancements.
}
{
Rev 1.1 6-2-2003 11:48:01 DGrava
Introduction of QuickEval component.
}
{
R... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
//
//
//События вызываемые по нажатию кнопочек
//
//
unit uSmartMethods;
interface
uses Windows, SysUtils, ClipBrd, Vcl.Buttons, Vcl.Controls, ShellApi,
mmsystem;
type clsSmartMethods= Class
public
procedure CopyToClipboard(Sender: TObject);
procedure OpenURL(Sender: TObject);
procedure OpenMail(Sender: TOb... |
{**********************************************************}
{ }
{ AddrBook 1.0 }
{ ---- Sample for Using TinyDB }
{ }
{ Author: Day... |
unit Nathan.Firebird.Validator.Syntax.Keywords.Types;
interface
{$M+}
type
// TDetail = record
// Kind: Integer;
// Value: string;
// end;
TFb25TokenKind = (
fb25None,
fb25Whitespaces,
fb25Starter,
fb25Operator,
fb25Variable,
fb25TerminatorCharacter,
fb25BracketOpen,
... |
unit ncHttp;
interface
uses
SysUtils, Classes, IdTCPConnection, IdTCPClient, IdHTTP;
function httpPost(aURL, aParams: String): String;
function httpGet(aURL: String): String;
function MesmaURL(A, B: String): Boolean;
implementation
uses uNR_chaveseg;
function MesmaURL(A, B: String): Boolean;
funct... |
unit SoundRepository;
interface
uses
WaveStorage, IOUtils, SysUtils, Types, Classes;
type
TSoundRepository = class
private
FWaves: TWaveCollection;
FVoice: String;
FSoundsNames: TStringList;
private
procedure LoadWaves();
public
constructor Create();
destructor Destroy(); override;
... |
(* ***************************************************************************
SkRegExpConst.pas (SkRegExp regular expression library)
**************************************************************************** *)
(*
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License... |
unit Unit_Row_SubTitles;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMXTee.Control,
FMXTee.Grid, FMX.Controls.Presentation, FMX.StdCtrls, FMX.Layouts;
type
TForm43 = class(TForm)
TeeGrid1: T... |
unit ufrmSysGridColPercent;
interface
{$I ThsERP.inc}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, StrUtils, Vcl.Menus, Vcl.Samples.Spin,
Vcl.AppEvnts,
Ths.Erp.Helper.Edit,
Ths.Erp.Helper.Memo,
Ths.Erp.Helper.ComboBox,
ufrmBase... |
// Ported CrystalDiskInfo (The MIT License, http://crystalmark.info)
unit SMARTSupport.Kingston;
interface
uses
BufferInterpreter, Device.SMART.List, SMARTSupport, Support;
type
TKingstonSMARTSupport = class(TSMARTSupport)
private
function GetTotalWrite(const SMARTList: TSMARTValueList): TTotalWrite;
pub... |
unit ncaFrmConfig_Gaveta;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, ncaFrmBaseOpcaoImgTxtCheckBox,
cxGraphics, cxControls, cxLookAndFeels, cxLookAndFeelPainters, cxContainer,
cxEdit, Vcl.Menus, Vcl.StdC... |
unit CPortX;
interface
uses
Windows, Messages, SysUtils, Variants, Classes,
Dialogs,
CPort, CPortCtl;
//**********************************************************************//
// //
// 例外通知用のクラス ... |
unit Server_impl;
{This file was generated on 16 Jun 2000 17:01:40 GMT by version 03.03.03.C1.04}
{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 se... |
unit uEngineConfig;
{$DEFINE TEST}
interface
uses
System.Classes,System.SysUtils,System.Json,FMX.Graphics, uEngineResource,
uEngine2DClasses;
Type
TResourceType = (rtImage,rtText);
TBaseConfig = class
protected
FSourceName : String; //精灵名
FType : TResourceType; //精灵类型
FResManager... |
unit FindUnit.FileCache;
interface
uses
FindUnit.PasParser,
FindUnit.SearchStringCache,
Interf.SearchStringCache,
System.Classes,
System.Generics.Collections,
System.SyncObjs;
type
TUnitsController = class(TObject)
private
FFullMatchSearchCache: ISearchStringCache;
FMatchS... |
{$INCLUDE ..\cDefines.inc}
unit cTypes;
{ }
{ Type base class v3.04 }
{ }
{ This unit is copyright ... |
unit adot.XML.XPath;
interface
uses
Xml.XMLDoc,
Xml.XMLIntf,
Xml.xmldom,
Xml.omnixmldom,
//Xml.adomxmldom,
System.SysUtils,
System.Masks;
type
(*
Example:
XPath: TXPath;
Node: IDOMNode;
begin
XPath.Init; { creates new XML document with vendor supporting XPath }
XPath.... |
unit Fonetiza.Utils;
interface
type
TFonetizaUtils = class
public
function SomarCaracteres(const AValue: string): string;
function SubstituirConteudos(const AValue: string; const AConteudo: TArray<TArray<string>>): string;
function RemoverCaracteresDuplicados(const AValue: string): string;
functio... |
unit LuaTrayIcon;
interface
Uses Classes, Controls, Contnrs, LuaPas, LuaControl, Forms, ExtCtrls, TypInfo, LuaCanvas;
function CreateTrayIcon(L: Plua_State): Integer; cdecl;
type
TLuaTrayIcon = class(TTrayIcon)
LuaCtl: TLuaControl;
LuaCanvas: TLuaCanvas;
public
destru... |
unit DescriptionsExcelDataModule;
interface
uses
System.SysUtils, System.Classes, ExcelDataModule, Excel2010, Vcl.OleServer,
FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Param,
FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, FireDAC.DApt.Intf,
Data.DB, FireDAC.Comp.DataSet, FireDAC.Comp.Client, C... |
unit HandlingQueryUnit;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseQuery, FireDAC.Stan.Intf,
FireDAC.Stan.Option, FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS,
FireDAC.Phys.Intf, FireDAC.DA... |
unit MetroVisCom;
interface
uses
Classes, Contnrs, Graphics, IniFiles,
Planner, VisCom;
type
TVisLine = class; // forward
//============================================================================
// TVisStation is an abstract base class for visualization of stations.
// It has:
... |
(**
This module contains often used code for use through out this application.
@Version 1.0
@Author David Hoyle
@Date 05 Jan 2018
**)
unit ITHelper.TestingHelperUtils;
interface
{$INCLUDE 'CompilerDefinitions.inc'}
Uses
SysUtils,
{$IFNDEF CONSOLE_TESTRUNNER} ToolsAPI, {$ENDIF}
Windows,
Graphic... |
unit HMainForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, ExtCtrls, OnScheme, StdCtrls, OnFocusButton, OnOneInstance,
Tmax_session, OnLineLabel, OnShapeLabel, OnEditBaseCtrl, OnEditStdCtrl,
OnEditBtnCtrl, OnTmaxPersonEdit, OnEditNumCtl, Grids, D... |
unit Vigilante.DataSet.Build;
interface
uses
System.Classes, System.Generics.Collections, Data.DB, FireDac.Comp.Client,
Vigilante.Build.Model, Vigilante.ChangeSetItem.Model, Vigilante.Aplicacao.SituacaoBuild,
Module.DataSet.VigilanteBase, Module.ValueObject.URL;
type
TBuildDataSet = class(TVigilanteDataSetBa... |
PROGRAM Frontier;
USES
CRT {ClrScr},
FileOps,
Lists;
CONST
fname = 'fx.prn';
delims = ' ,'; {space, comma}
AssetCount = 4; {At most one less than Max Assets to allow for portfolio }
Annualize = 7.21102551; { sqrt(52) - weekly data}
Precision = 10; { possible allocation shifts }
USYld = 9.00;
... |
{Sieve of Eratosthenes – finding out all prime numbers up to N
This Pascal program finds out all the prime numbers up to a number N, by using a very efficient algorithm called The Sieve of Eratosthenes.
How it works in short is that it goes through each number up to N, and if that number is prime, it marks all of its... |
unit BufferInterpreter.ATA;
interface
uses
SysUtils,
BufferInterpreter, Device.SMART.List;
type
TATABufferInterpreter = class sealed(TBufferInterpreter)
public
function BufferToIdentifyDeviceResult(
const Buffer: TSmallBuffer): TIdentifyDeviceResult; override;
function BufferToSMARTValueList(
... |
unit AntifakeHelperUnit;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils
,NVSRecordUnit
,BaseTXUnit
,EmerAPIBlockchainUnit
,fpjson
,emerapitypes
;
type
tAFRequestType=(afrtLot,afrtProduct,afrtBrand,afrtRoot,afrtRootCert,afrtParent);
tAFRequest = class;
tAntifakeCallback=procedure (Sender:... |
(*
** $Id: lua.pas,v 1.3 2006/11/17 00:02:17 jfgoulet Exp $
** Lua - An Extensible Extension Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
**
** Translation form C and Delphi adaptation of Code :
** Massimo Magnano, Jean-Francois Goulet 2006
*)
... |
unit Samples.Views.Main;
interface
uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Graphics, FMX.Controls,
FMX.Forms, FMX.Dialogs, FMX.StdCtrls, FMX.Controls.Presentation, FMX.ListView.Types, FMX.ListView.Appearances,
FMX.ListView.Adapters.Base, FMX.ListView, FM... |
unit uGMV_VersionInfo;
interface
uses
Classes
, SysUtils
, Windows
;
type
TGMV_VersionInfo = class(TObject)
private
FFileName: string;
FLanguageID: DWord;
FInfo: pointer;
FInfoSize: longint;
procedure SetFileName(Value: string);
procedure OpenFile(FName: string);
procedure Clos... |
unit GMMP3;
interface
uses
Windows, Classes;
function GMPlaySound(stream: TMemoryStream; flags: Cardinal): bool; overload;
function GMPlaySound(const fn: string; flags: Cardinal): bool; overload;
function ConvertMp3ToWav(InStream, OutStream: TStream): bool;
implementation
uses
MMSystem, MMReg, MP3Utils, Math, ... |
unit Updata;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, mxWebUpdate, ComCtrls, ExtCtrls, Buttons, ShellAPI;
type
TfrmUpdata = class(TFrame)
grpUpdataProduct: TGroupBox;
lbAuthor: TLabel;
lbProductName: TLabel;
lbEma... |
unit ACompactador;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Gauges, StdCtrls, IdBaseComponent, IdZLibCompressorBase,
IdCompressorZLib, ZipMstr19, IdComponent, IdTCPConnection, IdTCPClient,
IdExplicitTLSClientServerBase, IdFTPCommon, IdFTP, DB, DBClient, ... |
unit umsrworker;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, udatabuilder, uother, utransport, umsr_defines;
type
{ TMSRWorker }
TMSRWorker = class
private
FComName: string;
FEncoderMode: integer;
FTransport: TMSRTransport;
FBuilder: TMSRDataBuilder;
public
constructor Crea... |
unit Unit1;
interface
type
TProductA1 = class;
TProductB1 = class;
TProductA2 = class;
TProductB2 = class;
TAbstractFactory = class
public
function printProductA: string; virtual; abstract;
function printProductB: string; virtual; abstract;
end;
TConcreteFactory2 = class(TAbstractFactory)
... |
unit Window;
interface
uses Windows, Messages, SysUtils, Classes, Graphics, MMSystem, Math,
Canvases, Walkers, RadioGroup;
type
TWindow = class
private
Wnd: HWND;
WndDC: HDC;
BmpDC: HDC; // контекст холста битмапа
ClientRect: TRect;
Canvas: IMyCanvas; // холст
Walker:... |
Program Lab31;
Const
fmax = 170;
Var
n, k: Integer;
res, fact_n, fact_k, fact_nk: Real;
Procedure ReadSafeInt(Var result: Integer);
Var
safety: String;
success: Integer;
Begin
Repeat
Readln(safety);
val(safety, result, success);
Until success = 0;
End;
{ Recursive factorial function.
* Orignal ... |
unit utransport;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,{Forms,} Synaser, uother;
type
{ TMSRTransport }
TMSRTransport = class
private
FAnswerTimeout: integer;
FCancel: boolean;
FConfigured: boolean;
FConnected: boolean;
FConnector: TBlockSerial;
FLastError: integer;
... |
{*********************************************}
{ TeeBI Software Library }
{ Sort Editor Dialog }
{ Copyright (c) 2015-2016 by Steema Software }
{ All Rights Reserved }
{*********************************************}
unit VCLBI.Editor.Sort;
interfa... |
{ Pascal function that returns a power of 10 }
function pow10(exponent:byte):longint;
var p:longint; { this is the number where we will store the result }
i:byte;
begin
p := 1;
for i := 2 to exponent do
begin
p := p * 10;
end;
pow10 := p;
end;
|
unit iaStressTest.TThreadedQueue.PopItem;
interface
uses
System.Classes,
System.Generics.Collections,
System.SyncObjs;
const
POP_TIMEOUT = 20; //the lower the timeout, the more pronounced the problem
MAX_TEST_RUNTIME_SECONDS = 600;
{$IFDEF MSWINDOWS}
RESERVED_STACK_SIZE = 65536;
{$I... |
unit agmapproject_model;
{$IFDEF FPC}
{$mode objfpc}{$H+}
{$ENDIF}
interface
uses
SysUtils
,tiObject
,tiAutoMap
,tiOPFManager
,tiVisitorDB
,tiVisitorCriteria
,tiCriteria
,tiSQLParser
,mapper
,tiQuery
;
type
// ---------------------------------------------
// Generated Classes
// -----------------------------... |
unit coolsms;
{ handler class interface를 만들어 아래 implementation에서 구현 }
interface
uses
System.Json, IdHash, IdHMACMD5, IDGlobal, DateUtils, IdException, IdHTTP, IdSSLOpenSSL, IdMultipartFormData, Classes, System.SysUtils;
type
handler = class
private
class var api_key : String;
class var api_s... |
unit RepChart;
interface
uses Windows, SysUtils, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, Quickrpt, QRCtrls, TeEngine, Series, TeeProcs,
Chart, DBChart, QrTee;
type
TReportChart = class(TQuickRep)
TitleBand: TQRBand;
QRChart: TQRChart;
QRDBChart: TQRDBChart;
QRLabel1: T... |
unit TEST_xpParse;
(*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distribu... |
{*******************************************************}
{ }
{ Borland Delphi Visual Component Library }
{ Parser object to allow on-the-fly parsing and }
{ text insertion }
{ ... |
(**
This module contains a class that implements the IDE notifiers so that before and after
compilation events can be handled.
@Author David Hoyle.
@Version 1.0
@Date 12 Jan 2018
**)
Unit ITHelper.IDENotifierInterface;
Interface
Uses
ToolsAPI,
Contnrs,
ITHelper.TestingHelperUtils,
ITHelper.Co... |
unit UOrderClass;
interface
type
TOrderClass = class(TObject)
private
FIDOrder: Integer;
public
procedure SetIDOrder(const Value: Integer);
property IDOrder: Integer read FIDOrder write SetIDOrder;
end;
implementation
procedure TOrderClass.SetIDOrder(const Value: Integer);
begin
FIDOrder := Va... |
{Unit F12lihatStatistik}
unit F12lihatS;
{Interface}
interface
uses typedata;
{Procedure F12lihatStatistik}
procedure F12lihatStatistik (var S : tabSimulasi; var N : integer);
{Fitur lihatStatistik yang dapat menampilkan progress dalam simulasi yang sedang berjalan}
{Implementation}
implementatio... |
{$mode objfpc}
{$m+}
program Stack;
const MAX_SIZE = 100;
type
ArrayStack = class
private
arr : array[0..MAX_SIZE] of integer;
top : 0..MAX_SIZE;
public
constructor create();
function pop(): integer;
procedure push(i : integer);
end;
Node = record
val : integer... |
unit xUDPServer;
interface
uses System.Types,System.Classes, xFunction, system.SysUtils, xUDPServerBase,
xConsts, System.IniFiles, xClientType, Winapi.WinInet, winsock;
type
TUDPServer = class(TUDPServerBase)
private
FInfoServerPort: Integer;
FInfoServerIP: string;
procedure ReadINI... |
unit GraphsForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls, TAGraph, TAChartTeeChart, TASeries,
TAChartUtils, TASources,
ComCtrls, ColorBox, StrUtils, Math, BenchmarkClassUnit;
const
{The number of kilobytes to add to the ... |
Unit ictrl;
(***********************************************************)
(**) interface (**)
(***********************************************************)
const SaveFileName='.\sav\intrctrl.sav';
type ResetProcs = procedure of object;
type IntrCtrl=class
(****... |
unit Lua;
interface
uses
Classes,Windows,LuaLib,GD_Utils;
type
TLuaState = Lua_State;
TLua = class(TObject)
private
fAutoRegister: Boolean;
CallbackList: TList;
public
LuaInstance: TLuaState; // Lua instance
constructor Create(AutoRegister: Boolean = True); overload; virtual;
destruc... |
unit uGMV_FileEntry;
{
================================================================================
*
* Application: Vitals
* Revision: $Revision: 1 $ $Modtime: 12/20/07 12:44p $
* Developer: doma.user@domain.ext
* Site: Hines OIFO
*
* Description: File Entry
*
* ... |
program ALGOTP1_FICHIERS_FB1_Wehrling_Axel;
uses crt, sysutils;
const
VerbeInfi='rire recevoir aller bouillir envoyer peindre habiter payer mourrir hair vouloir finir amuser ';
VerbeGroupe2='finis hais ';
VerbeIssant='finissant haissant ';
var
FichInfini,FichIssant : TextFile;
//BUT: Procedure q... |
unit clntfrm;
{
This is the client side of the Briefcase demo. The Connected checkbox shows
if the server is connected or not. Notice that the FileName property of the
ClientDataSet is set. This causes the ClientDataSet to load from the file
when it is opened and save to the file when it is closed. It also... |
{*******************************************************}
{ }
{ Delphi VCL Extensions (RX) }
{ For 16-bit applications only }
{ }
{ Copyright (c) 1995, ... |
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
unit ff7edit;
interface
Uses CosmoUtil, FFLzs, Classes, SysUtils, DebugLog, FF7Ed,
PluginTypes, FF7Types, BaseUtil;
{$DEFINE TEMPDUMP}
Type
TFF7Level = class
private
FTextItems: TList;
DCmp,OCmp: TMemoryStream;
FOldMidi,FMidi: ... |
{*******************************************************}
{ }
{ Delphi VCL Extensions (RX) }
{ }
{ Copyright (c) 1995, 1996 AO ROSNO }
{ Copyright (c) 1997, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.