text stringlengths 14 6.51M |
|---|
unit MediaProcessing.Convertor.HH.RGB.Impl;
interface
uses Windows,SysUtils,Classes,MediaProcessing.Convertor.HH.RGB,MediaProcessing.Definitions,MediaProcessing.Global,HHCommon, HHDecoder;
type
TMediaProcessor_ConvertorHh_Rgb_Impl =class (TMediaProcessor_Convertor_Hh_Rgb,IMediaProcessorImpl)
private
FVideoD... |
unit uText;
interface
uses
SysUtils, Character;
type
TPosInText = record
private
procedure Init;
public
Line : Cardinal;
LinePos : Cardinal;
Pos : Cardinal;
end;
//function GetNext: Char; overload;
//function GetNext(const AAddIndex: NativeUInt): Char; overload;
//procedure Erro... |
{*******************************************************}
{ }
{ Borland Delphi Runtime Library }
{ Win32 registry interface unit }
{ }
{ Copyright (C) 1996,98... |
unit AccountClassList;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, BaseGridDetail, Data.DB, RzButton,
Vcl.StdCtrls, Vcl.Mask, RzEdit, Vcl.Grids, Vcl.DBGrids, RzDBGrid, RzLabel,
Vcl.ExtCtrls, RzPanel, RzDB... |
unit ViewF;
interface
uses
Messages, SysUtils, Forms, ExtCtrls, Printers, MainF, Classes, Controls,
Dialogs, StdCtrls, Menus, Windows;
type
TAnsichtForm = class(TForm)
AnsichtFormItemsListBox: TListBox;
AnsichtFormDLabel: TLabel;
AnsichtFormHLabel: TLabel;
AnsichtFormRLabel: TLabel... |
unit ULauncherProfileLoader;
interface
uses SysUtils, UFileUtilities, SuperObject, USettingsManager, WinApi.Windows;
type
TAuthenticationDatabase = class
public
Count:Integer;
username, accessToken, uuid, displayName: Array[1..100]of String;
end;
TProfile = class
public
name, gameDir, javaDir,... |
unit B_ID3V1;
interface
uses
SysUtils, Classes;
type
// some standard definition
PID3V1Rec = ^TID3V1Rec;
TID3V1Rec = packed record
Tag: array[0..2] of Char;
Title: array[0..29] of Char;
Artist: array[0..29] of Char;
Album: array[0..29] of Char;
Year: array[0..3] of Char;
Comment: array[0..29] of Ch... |
unit IdNNTP;
interface
uses
Classes,
IdException,
IdGlobal,
IdTCPConnection,
IdMessage,
IdMessageClient;
type
TModeType = (mtStream, mtIHAVE, mtReader);
TConnectionResult = (crCanPost, crNoPost, crAuthRequired, crTempUnavailable);
TModeSetResult = (mrCanStream, mrNoStream, mrCanIHAVE, mrNoIHAVE, m... |
program hello(Output);
begin
Writeln('Hello, world! How''s it going?')
end .
|
unit xTCPServer;
interface
uses System.Types,System.Classes, xFunction, system.SysUtils, xTCPServerBase,
xConsts, System.IniFiles, xClientType;
type
TRevStuData = procedure (sIP: string; nPort :Integer;aPacks: TArray<Byte>) of object;
type
TTCPServer = class(TTCPServerBase)
private
FOnR... |
unit NetworkFiler;
interface
uses
Classes, IniFiles, Graphics, Dialogs,
MetroBase, StringValidators;
type
//----------------------------------------------------------------------------
// TNetworkFiler is a class with some routines for reading/writing
// a network from/to a .nwk file
//------... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit XERO.Types;
{$INCLUDE 'XERO.inc'}
interface
{ ************************************ }
{ A few predefined types to help out }
{ ************************************ }
type
Pbyte = ^byte;
Pword = ^word;
Pdword = ^dword;
Pint64 = ^int64;
dword = longword;
Pwordarray = ^Twordarray;
Tw... |
unit ooCalc;
interface
uses
SysUtils, Variants, ComObj;
type TTipooCalc = (ttcError, ttcNone, ttcExcel, ttcOpenOffice);
type TopofCalc = class(TObject)
Document : Variant;
DeskTop : Variant;
Programa : Variant;
Tipoo : TTipooCalc;
FileName : string;
ActiveSheet : Variant;
... |
unit FC.StockChart.UnitTask.BBExpert.Navigator;
interface
{$I Compiler.inc}
uses
SysUtils,Classes, BaseUtils, Serialization, StockChart.Definitions.Units,StockChart.Definitions,
FC.Definitions, FC.Singletons,
FC.StockChart.UnitTask.Base;
implementation
uses
FC.StockChart.UnitTask.BBExpert.NavigatorDialog;
t... |
unit RecursoEditFormUn;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
osCUSTOMEDITFRM, Wwintl, Db, DBClient, osClientDataset, ActnList,
StdCtrls, Mask, DBCtrls, Grids, DBGrids, ComCtrls,
wwdbedit, Wwdotdot, Wwdbcomb, Menus, ImgList,
osActionList, ToolWin, ... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
unit ncaColorConv;
{
ResourceString: Dario 10/03/13 Achou nada
}
interface
uses Graphics;
type
TRGB = record
R: Integer;
G: Integer;
B: Integer;
end;
type
THLS = record
H: Integer;
L: Integer;
S: Integer;
end;
type
THWB = record
H: Integer;
... |
unit WIMGAPI;
interface
uses Windows;
const
WIM_INFO_MARKER = WideChar($FEFF);
GENERIC_EXECUTE = $20000000;
{ dwDesiredAccess }
WIM_GENERIC_READ = GENERIC_READ;
WIM_GENERIC_WRITE = GENERIC_WRITE;
WIM_GENERIC_MOUNT = GENERIC_EXECUTE;
{ dwDisposition }
WIM_CREATE_NEW = CREAT... |
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TSeverity = (seOK, seWarning, seCritical);
TForm1 = class(TForm)
Button1: TButton;
Memo1:... |
unit ConvertItUnit;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;
type
TForm1 = class(TForm)
ConvTypes: TListBox;
ConvValue: TEdit;
ConvResults: TListBox;
ConvValueIncDec: TUpDown;
ConvFamilies: TTabControl;
Status... |
{----------------------------------------------------------------------------}
{ Written by Nguyen Le Quang Duy }
{ Nguyen Quang Dieu High School, An Giang }
{----------------------------------------------------------------------------}
... |
{-------------------------------------------------------------------------------
Объектная модель проигрывателя (см. HH5PlayerSDK.dll).
-------------------------------------------------------------------------------}
unit Player.Control;
{$ALIGN ON}
{$MINENUMSIZE 4}
interface
uses Messages, Windows, Forms, G... |
{
ID: a2peter1
PROG: friday
LANG: PASCAL
}
{$B-,I-,Q-,R-,S-}
const
problem = 'friday';
month : array[1..12] of byte =
(31,28,31,30,31,30,31,31,30,31,30,31);
var
N,i,j,k : longint;
day : array[0..6] of longint;
function leap(year: longint): boolean;
begin
leap := (year ... |
unit YahtzeeClasses;
{$IFDEF FPC}
{$MODE DELPHI}
{$ENDIF}
{$H+}
interface
uses
Generics.Collections, Classes;
type
TMsgData = array of Byte;
{ TBaseIdentMessage }
TBaseIdentMessage = class
Ident: TGUID;
Data: TMsgData;
constructor Create; virtual;
function Encode: TMsgData; vir... |
unit BaseListItem;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
UI.Base, UI.Standard;
type
TBaseListItemFrame = class(FMX.Forms.TFrame)
private
{ Private declarations }
FI... |
unit MouseDialog;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, KbdMacro;
type
TMouseForm = class(TForm)
OKBtn: TButton;
CancelBtn: TButton;
Label1: TLabel;
MouseComboBox: TComboBox;
GroupBox1: TGroupBox;
RBWheelUp: TRadioButton;
RB... |
unit PSC10904;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, Db, MemDS, DBAccess, Ora, OraSmart, ExtCtrls, Mask, Func, JPEG,
ComCtrls, OnEditStdCtrl, OnEditBaseCtrl, OnFocusButton, QuickRpt, Qrctrls,
DBCtrls, OnRegistry, OnEditBtnCtrl, OnEd... |
unit b01_simpanpw;
interface
uses
utilitas;
const
p1 = 197; // angka prima untuk hash1
p2 = 233; // angka prima untuk hash2
m1 = 1000000009; // modulo untuk hash1
m2 = 1000000007; // modulo untuk hash2
{ DEKLARASI FUNGSI DAN PROSEDUR }
function getLength(password: String): Integer;
function ha... |
{ Демонстрация описания и вызова функционала Map. }
{ }
{ Функция, формальным параметром которой является }
{ функция, называется функционалом }
{ ----------------------------------------------- }
PROGRAM Primer_9;
{$F+} ... |
unit NtUtils.Tokens.Query;
interface
{ NOTE: All query/set functions here support pseudo-handles on all OS versions }
uses
Winapi.WinNt, Ntapi.ntseapi, NtUtils.Exceptions, NtUtils.Security.Sid,
NtUtils.Security.Acl, NtUtils.Objects;
// Make sure pseudo-handles are supported for querying
function NtxpExpandPseud... |
unit fibCheckSingleLicenseClass;
interface
uses Classes, fibAthlInstanceCounter;
type
TFuncCallback = procedure;
type
TCheckLicense = class{(TComponent)}
private
FAthlInstanceCounter: TAthlInstanceCounter;
FIsValid: boolean;
FInstanceCount: Integer;
FCallBack: TfuncCallBack;
procedure Chan... |
program SinglyLinkedList;
uses
System.SysUtils;
type
PNode = ^TNode;
TNode = Record
Data: Variant;
Next: PNode;
End;
TSinglyLinkedList = Class
private
FHead: PNode;
function AllocNode: Pointer;
procedure FreeNode(var ANode: PNode);
public
property Head: PNode read ... |
// auteur : Djebien Tarik
// date : Mars 2010
// objet : Unité pour Alignement de deux mots.
UNIT U_Edition;
INTERFACE
TYPE
Matrice = array of array of CARDINAL;
function min(x,y,z:CARDINAL): CARDINAL;
function distance_dynamique(u,v:STRING): CARDINAL;
IMPLEMENTATION
// min(x,y,z) renvoie le plus pet... |
unit ccbulkdbcore;
interface
uses
sysutils,classes,db,ccbulkinsert;
type
TDatasetReader = class(TCCCustomReader)
public
function getRowCount: integer;override;
function getColCount: integer;override;
function getRowValue(ACol,ARow: integer): string;override;
end;
ICCDataset = interface(IInterf... |
unit Kafka.Classes;
interface
uses
System.SysUtils, System.Classes, System.Generics.Collections, System.Threading, System.SyncObjs,
Kafka.Interfaces,
Kafka.Types,
Kafka.Helper,
Kafka.Lib;
const
ConsumerPollTimeout = 100;
type
TConsumerMessageHandlerProc = reference to procedure(const Msg: prd_kafka_m... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
//
// This unit is part of the GLScene Project, http://glscene.org
//
{
FileNMF - NormalMapper vector file format loading/saving structures
Notes:
NormalMapper can be found at http://www.ati.com/developer/tools.html
History:
16/10/08 - UweR - Compatibility fix for Delphi 2009
14/05/... |
{*******************************************************}
{ }
{ Translation of winerror.h }
{ }
{ Copyright (c) 2001, Eventree Systems }
{ ... |
//////////////////////////////
//
// Author: Kazoku
// Date: 04/11/2021
//
//////////////////////////////
begin
writeln('hello world');
end. |
unit uPostagensDAO;
interface
uses
FireDAC.Comp.Client, uConexao, System.SysUtils, System.StrUtils;
type
TPostagensDAO = class
private
FConexao : TConexao;
public
constructor Create;
function Exibir(): TFDQuery;
function Excluir(pId: Integer): Boolean;
function Alterar(pIdUsa... |
unit CommandSet.NVMe;
interface
uses
Windows, SysUtils,
OSFile.IoControl, CommandSet, BufferInterpreter, BufferInterpreter.NVMe,
Device.SlotSpeed, Getter.SlotSpeed;
type
TNVMeCommandSet = class abstract(TCommandSet)
public
function DataSetManagement(StartLBA, LBACount: Int64): Cardinal;
override;... |
unit uUtils;
{$I ..\Include\IntXLib.inc}
interface
uses
uIntXLibTypes;
type
/// <summary>
/// Custom class that contains various helper functions.
/// </summary>
TUtils = class sealed(TObject)
public
/// <summary>
/// Calculates Arithmetic shift right.
/// </summary>... |
unit Demo.Forms.Serialization.Records;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls,
Demo.Forms.Serialization.Base;
type
TfrmSerializationRecords = class(TfrmSerializationBase)
... |
{**********************************************}
{ TCCIFunction (Commodity Chanel Index) }
{ Copyright (c) 2002-2004 by David Berneda }
{**********************************************}
unit TeeCCIFunction;
{$I TeeDefs.inc}
interface
uses
{$IFNDEF LINUX}
Windows, Messages,
{$ENDIF}
SysUtils, Classes... |
unit TestUsesFindReplace;
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is TestUsesFindReplace, released October 2003.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele... |
unit Watcher;
{$I define.inc}
interface
uses Plus, Windows, xBase, Classes {$IFDEF ReadDirectoryChanges}, RadDW_NT {$ENDIF};
type
TDirectoryWatcher = class(T_Thread)
hDirectoryWatcherEvent: THandle;
{$IFDEF ReadDirectoryChanges}
FileFlagsWatcher: TRadiusNTDirWatch;
{$ENDIF}
hOutboundWatcher,
hHome... |
{ *********************************************************************
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Autor: Brovin Y.D.
* E-mail: ... |
{*******************************************************}
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{$mode objfpc}{$H+}{$J-}
program showcolor;
// Обидва модулі - Graphics й GoogleMapsEngine визначають тип TColor.
uses
Graphics, GoogleMapsEngine;
var
{ Не не спрацює так, як ми хочемо, оскільки TColor в підсумку
визначений в модулі GoogleMapsEngine. }
// Color: TColor;
{ Це працює. }
Color: Graphics.TC... |
unit uRedactor;
interface
uses
uTypes, Graphics;
/// <summary>Процедура для установки имени для темы</summary>
procedure SetTemeName(Name: string);
/// <summary>Процедура для установки заставки</summary>
procedure ChangeDesktop(ImagePath: string; WallpaperStyle: TWallpaperStyle);
/// <summary>Процедура... |
unit ScrollBoxImpl1;
interface
uses
Windows, ActiveX, Classes, Controls, Graphics, Menus, Forms, StdCtrls,
ComServ, StdVCL, AXCtrls, DelCtrls_TLB;
type
TScrollBoxX = class(TActiveXControl, IScrollBoxX)
private
{ Private declarations }
FDelphiControl: TScrollBox;
FEvents: IScrollBoxXEvents;
pr... |
////////////////////////////////////////////////////////////////////////////////
//
//
// FileName : SUIButton.pas
// Creator : Shen Min
// Date : 2002-05-30 V1-V3
// 2003-06-14 V4
// Comment :
//
// Copyright (c) 2002-2003 Sunisoft
// http://www.sunisoft.com
// Email: su... |
{
This file contains a basic engine for Petris - YATC.
It is the engine to handle all Petris related game states. By connecting this to a
client front end (LCL, SDL etc.) it is relatively easy to create a working Tetris clone.
This is an engine for demonstration purposes only.
Copyright (C) 2018 ENY (e... |
unit CCHint;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs;
Const
Sqrt2 = 1.4142135624;
type
TDrawHint =
procedure (Sender : TObject; Canvas : TCanvas; var R : TRect) of object;
TOnHint =
procedure (Sender : TObject; Hint : string) of object;
TCCHint = class(TComponent)
pr... |
Unit PascalCoin.FMX.DataModule;
Interface
Uses
System.SysUtils, System.Classes, System.ImageList, FMX.ImgList,
PascalCoin.Wallet.Interfaces, PascalCoin.FMX.Wallet.Shared, Data.DB,
Datasnap.DBClient, Spring, PascalCoin.Update.Interfaces,
PascalCoin.RPC.Interfaces, FireDAC.Stan.Intf, FireDAC.Stan.Option,
Fir... |
unit LTClasses;
interface
uses
LTConst,
Generics.Collections,
Forms, Classes, SysUtils;
type
{ Exception }
ELevelTest = class(Exception)
end;
{ Form }
TLTForm = class(TForm)
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
TFormList = class... |
{
AD.A.P.T. Library
Copyright (C) 2014-2018, Simon J Stuart, All Rights Reserved
Original Source Location: https://github.com/LaKraven/ADAPT
Subject to original License: https://github.com/LaKraven/ADAPT/blob/master/LICENSE.md
}
unit ADAPT.Comparers.Abstract;
{$I ADAPT.inc}
interface
uses
{$... |
(*
Ejercicio 14
Matemáticamente, ln(a^b) = b * ln(a) y e^ln(x) = x
Use estas propiedades, el operador de multiplicación ( * )
y las funciones estándar de Pascal ln y exp
para escribir una expresión en Pascal que produzca el valor de a^b.
no puede usar funciones ni nada mas avanzado que imprimir.
*)
PROGRAM p;
CONST ... |
unit uuserutils;
{DESKRIPSI : Berisi fungsi (F01, F02, F15) yang berhubungan dengan tipe data user}
{REFERENSI : -}
interface
uses
ucsvwrapper,
uuser, k03_kel3_md5, crt;
{PUBLIC, FUNCTION, PROCEDURE}
procedure setToDefaultUser(ptr : psingleuser);
procedure registerUserUtil(pnewUser : psingleuser; ptruser... |
{(*}
(*------------------------------------------------------------------------------
Delphi Code formatter source code
The Original Code is frClarify.pas, released April 2000.
The Initial Developer of the Original Code is Anthony Steele.
Portions created by Anthony Steele are Copyright (C) 1999-2008 Anthony S... |
unit NtUtils.Strings;
interface
uses
Winapi.WinNt, Ntapi.ntdef, DelphiUtils.Strings, NtUtils.Security.Sid;
const
GroupAttributeFlags: array [0..5] of TFlagName = (
(Value: SE_GROUP_MANDATORY; Name: 'Mandatory'),
(Value: SE_GROUP_OWNER; Name: 'Owner'),
(Value: SE_GROUP_INTEGRITY; Name: 'Integrity'),
... |
unit rhlTests;
interface
uses
Classes,
rhlCore,
rhlMD2, rhlMD4, rhlMD5,
rhlHAS160,
rhlSHA0, rhlSHA1,
rhlSHA224, rhlSHA256,
rhlSHA384, rhlSHA512,
rhlSHA512_224, rhlSHA512_256,
rhlKeccak,
rhlRIPEMD, rhlRIPEMD128, rhlRIPEMD160, rhlRIPEMD256, rhlRIPEMD320,
rhlHAVAL128, rhlHAVAL160, ... |
unit Fontlist;
interface
uses Windows, Classes, Graphics, Forms, Controls, StdCtrls;
type
TForm1 = class(TForm)
ListBox1: TListBox;
Label1: TLabel;
FontLabel: TLabel;
procedure FormCreate(Sender: TObject);
procedure ListBox1Click(Sender: TObject);
procedure DrawItem(Control: TWinControl; In... |
unit TAudioSineDemo;
{
This just demostrates some of the functions of the TSoundOut component
1) How to Fill Buffers.
2) How to Start, Stop at once, Stop gracefully.
3) How to pause and resume playout.
4) Using OnStart and OnStop.
}
interface
uses
Windows, Messages, SysUtils, Classes, Gr... |
FUNCTION SendBlock(blockNum : BYTE; data : DataBlock; length : INTEGER; crcMode : BOOLEAN) : ResponseType;
CONST
SOH = ^A;
STX = ^B;
GetSetUser = 32;
VAR
chksum : BYTE;
crc,i,retries : INTEGER;
c : CHAR;
response : ResponseType;
BEGIN
retries := RETRIES_MAX;
REPEAT
IF length = 128 THE... |
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, jpeg, Buttons;
type
TForm1 = class(TForm)
Label1: TLabel;
Timer1: TTimer;
Label2: TLabel;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedBu... |
unit Getter.DriveList;
interface
uses
Windows, SysUtils, Classes,
OSFile.ForInternal;
type
TDriveList = TStringList;
TDriveSet = Set of DRIVE_UNKNOWN..DRIVE_RAMDISK;
TDriveListGetter = class abstract(TOSFileForInternal)
public
function GetDriveList: TDriveList;
protected
function GetDriveTypeTo... |
{*******************************************************}
{ }
{ Delphi Runtime Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
program Ved (Input, Output);
uses
Crt;
const
MAX_LINES = 512;
type
filename = string [80];
linestr = string [128];
lineptr = ^linestr;
var
termWidth, termHeight : integer;
x, y : integer; { cursor coordinates }
offset : integer;
status : string [70];
linecount : integer;
lines : array [1..MAX_L... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{**********************************************************************}
{* Иллюстрация к книге "OpenGL в проектах Delphi" *}
{* Краснов М.В. softgl@chat.ru *}
{**********************************************************************}
unit frmMain;
interface
u... |
unit Squall;
interface
uses windows;
const
// список ошибок
SQUALL_ERROR_NO_SOUND: Integer = -1; // в системе нет звукового устройства
SQUALL_ERROR_MEMORY: Integer = -2; // ошибка выделения памяти
SQUALL_ERROR_UNINITIALIZED: Integer = -3; // класс не инициализирован... |
{-------------------------------------------------------------------------------
search and select a device in the broadcast list
(c) Bio-Logic company, 1997 - 2013
-------------------------------------------------------------------------------}
unit VMPFinddevice;
interface
uses
Windows, SysUtils, Classes, Gr... |
{ *******************************************************************************
Copyright 2016-2019 Daniele Spinetti
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.or... |
unit Unit9;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons;
type
TForm9 = class(TForm)
PrintDialog: TPrintDialog;
Button1: TButton;
cboPrinter: TComboBox;
procedure B... |
program anime;
var c: char;
begin
c := 'f';
printf('Value of c is %c',c);
end |
unit UL.TURepositionLayout;
interface
uses
UL.Classes,
System.Classes, System.Types,
VCL.Controls, VCL.ExtCtrls, VCL.Dialogs;
type
TURepositionLayout = class(TPanel)
private
FPanelA: TPanel;
FPanelB: TPanel;
FMinWidth: Integer;
FMaxWidth: Integer;
FMaxHeight: Integer;
... |
unit LLVM.Imports.BitReader;
interface
//based on BitReader.h
uses
LLVM.Imports,
LLVM.Imports.Types;
//LLVMParseBitcode is deprecated, therefore we implement only LLVMParseBitcode2, but as LLVMParseBitcode
function LLVMParseBitcode(MemBuf: TLLVMMemoryBufferRef; out OutModule: TLLVMModuleRef; var OutMessage: PLL... |
unit ufrmSysUserMacAddressException;
interface
{$I ThsERP.inc}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, StrUtils, Vcl.Menus,
Vcl.AppEvnts,
Ths.Erp.Helper.Edit, Ths.Erp.Helper.ComboBox, Ths.Erp.Helper.Memo,
ufrmBase, ufrmBaseInpu... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2011 Embarcadero Technologies, Inc. }
{ ... |
{$A+,B-,D+,E-,F-,G+,I+,L+,N+,O-,P-,Q-,R-,S-,T-,V+,X+,Y+}
{$M 1024,0,0}
{
by Behdad Esfahbod
Algorithmic Problems Book
April '2000
Problem 68 O(N2) Dynamic Method Nim Value Calc.
}
program
PebblesGame;
const
MaxN = 100;
type
Arr = array [0 .. 1, 0 .. MaxN] of Integer;
var
N, K, I, J, Fr : Integer;
Cnt : Ar... |
unit ClassOCR;
interface
uses Controls, Windows, Graphics, Classes;
type PSec = ^TSec;
TSec = TRect;
TOcr = class
private
Secs : TList;
procedure FreeSecs;
procedure FindSections( Bmp : TBitmap );
function FindSection( Bmp : TBitmap; X , Y : integer ) : TSec;
fun... |
unit versioninfo;
{$mode objfpc}
interface
uses
Classes, SysUtils, resource, versiontypes, versionresource;
type
{ TVersionInfo }
TVersionInfo = class
private
FVersResource: TVersionResource;
function GetFixedInfo: TVersionFixedInfo;
function GetStringFileInfo: TVersionStringFileInfo;
funct... |
{-------------------------------------------------------------------------------
// EasyComponents For Delphi 7
// 一轩软研第三方开发包
// @Copyright 2010 hehf
// ----------------------------... |
unit SearchFamilyCategoriesQry;
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, Fire... |
{*******************************************************}
{ }
{ Delphi DataSnap Framework }
{ }
{ Copyright(c) 2011 Embarcadero Technologies, Inc. }
{ ... |
unit UMsgBox;
interface
uses Windows;
procedure ShowMsg(const Text: string; const Caption: string = '提示');
procedure ShowSuccess(const Text: string; const Caption: string = '提示');
procedure ShowWarning(const Text: string; const Caption: string = '警告');
procedure ShowError(const Text: string; const Caption: ... |
- generics types
- persitencia
- singleton
- rtti
- attribute
unit uTeste;
interface
uses
Classes, SysUtils,
Generics.Collections;
type
{ generics types }
IClasseIntf<T : class> = class
public
function MetodoArray<T : class>(AArray : TArray<T>) : T;
function MetodoLista<T : class>(A... |
unit ListeningSQLUnit;
interface
uses
JoanModule,
TestClasses,
SysUtils, Generics.Collections, Classes, Contnrs;
procedure InsertListeningData(ListeningData: TListening);
procedure ModifyListeningData(ListeningData: TListening);
procedure DeleteListeningData(ListeningData: TListening);
function GetListeningDat... |
unit Config;
interface
uses
System.SysUtils, System.Classes, System.Types, System.Variants, Vcl.Forms, IniFiles,
System.Rtti,
MyUtils, Migration;
type
TConfig = class
private
class procedure CreateFile(Path: string);
class function Source: string;
public
class function GetConfig(const Section... |
unit IL.Instructions;
interface
{$i compilers.inc}
uses SysUtils, Classes, TypInfo, StrUtils, Math, AVL, IL.Types, NPCompiler.Utils, NPCompiler.DataTypes,
NPCompiler.Classes, HWPlatforms; // system
type
TILInstruction = class;
// контекст встраивания процедуры
TPIContext = record
InlineProc: TIDPr... |
unit ClientMain;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Corba, Broker_I, Broker_C;
type
TForm2 = class(TForm)
btnMoneyMarket: TButton;
btnMargin: TButton;
btnInvestment: TButton;
Memo1: TMemo;
procedure FormCreate(Sender: TObject);... |
{ Map Viewer Download Engine Free Pascal HTTP Client
Copyright (C) 2011 Maciej Kaczkowski / keit.co
License: modified LGPL with linking exception (like RTL, FCL and LCL)
See the file COPYING.modifiedLGPL.txt, included in the Lazarus distribution,
for details about the license.
See also: https://wiki.lazaru... |
{*******************************************************}
{ }
{ Delphi Visual Component Library }
{ }
{ Copyright(c) 1995-2018 Embarcadero Technologies, Inc. }
{ All rights rese... |
{*******************************************************}
{ }
{ DelphiWebMVC }
{ }
{ 版权所有 (C) 2019 苏兴迎(PRSoft) }
{ ... |
Program Operacoes_com_numeros ;
var n1, n2, soma, subtracao, multiplicacao, divisao:real;
Begin
//Pede os valores de "N1" e "N2"
writeln('Introduza o 1 número');
readln(n1);
writeln('Introduza o 2 número');
readln(n2);
//Soma os valores
soma:=n1 + n2;
//Subtrai... |
unit cImageMap;
interface
uses ExtCtrls,StdCtrls,cMap,cImageBuffer;
type TImageMap = class
//=== Protected ================================================================
Protected
FQtdX :Integer;
FQtdY :Integer;
FPosX :Integer;
FPosY :Integer;
FWidth :Integer;
FHeight ... |
unit p_RCC;
interface
uses xMisc, Types, Windows, xBase, SysUtils,
Menus, Controls, Forms, Classes;
function CreateRCCProtocol(CP: Pointer): Pointer;
type
TRCCState = (
bdInit,
bdWork,
bdDone
);
TRCC = class(TBiDirProtocol)
SList: TStringColl;
function GetStateStr: string; ... |
unit dep_parentsform;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TParentsForm = class(TForm)
OkBtn: TButton;
CancelBtn: TButton;
FNameEdit: TLabeledEdit;
MNameEdit: TLabeledEdit;
LNameEdit: TLabel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.