Quantcast
Channel: Delphi Forum - Delphi Programming Kings of Code - Delphi Components
Viewing all 1331 articles
Browse latest View live

DataSetConverter 4 Delphi

$
0
0
 The DataSetConverter4D it is an API to convert JSON objects for DataSet's and also doing reverse process, ie, converting DataSet's in JSON.Works with the TDataSet, and TJSONObject TJSONArray classes.To use this API you must add the "DataSetConverter4D\src" Path in your Delphi or on your project.

Convert DataSet to JSON

First you must have your DataSet and its Fields created.

uses 
  DataSetConverter4D, 
  DataSetConverter4D.Impl;    

var
  ja: TJSONArray;
  jo: TJSONObject;
begin
  fCdsCustomers.DataSetField := nil;
  fCdsCustomers.CreateDataSet;

  fCdsCustomers.Append;
  fCdsCustomers.FieldByName('Id').AsInteger := 1;
  fCdsCustomers.FieldByName('Name').AsString := 'Customers 1';
  fCdsCustomers.FieldByName('Birth').AsDateTime := StrToDateTime('22/01/2014 14:05:03');
  fCdsCustomers.Post;

  fCdsCustomers.Append;
  fCdsCustomers.FieldByName('Id').AsInteger := 2;
  fCdsCustomers.FieldByName('Name').AsString := 'Customers 2';
  fCdsCustomers.FieldByName('Birth').AsDateTime := StrToDateTime('22/01/2014 14:05:03');
  fCdsCustomers.Post;

  //Convert all records 
  ja := TConverter.New.DataSet(fCdsCustomers).AsJSONArray;

  //Convert current record
  jo := TConverter.New.DataSet.Source(fCdsCustomers).AsJSONObject;

  ja.Free;
  jo.Free;
end;

Convert JSON to DataSet

First you must have your DataSet and its Fields created.

uses 
  DataSetConverter4D, 
  DataSetConverter4D.Impl;  

JSON_ARRAY =
        [{
            "Id": 1,
            "Name": "Customers 1",
            "Birth": "2014-01-22 14:05:03"
        }, {
            "Id": 2,
            "Name": "Customers 2",
            "Birth": "2014-01-22 14:05:03"
        }]      

JSON_OBJECT =
        {
            "Id": 2,
            "Name": "Customers 2",
            "Birth": "2014-01-22 14:05:03"
        }
var
  ja: TJSONArray;
  jo: TJSONObject;
begin
  fCdsCustomers.CreateDataSet;

  ja := TJSONObject.ParseJSONValue(TEncoding.ASCII.GetBytes(JSON_ARRAY), 0) as TJSONArray;
  jo := TJSONObject.ParseJSONValue(TEncoding.ASCII.GetBytes(JSON_OBJECT), 0) as TJSONObject;

  //Convert one record
  TConverter.New.JSON(jo).ToDataSet(fCdsCustomers);

  fCdsCustomers.EmptyDataSet;

  //Convert all records
  TConverter.New.JSON.Source(ja).ToDataSet(fCdsCustomers);

  ja.Free;
  jo.Free;
end;


Hooks & API

$
0
0
The Delphi Detours Library is a library allowing you to hook Delphi and Windows API functions. It provides an easy way to insert and remove hook.

Features :
Support x86 and x64 architecture.
Allow calling the original function via Trampoline function.
Support for Multi Hook.
COM/Interfaces/win32api support.
Support hooking interfaces methods by MethodName or MethodIndex.
Support COM vtable patching.
Fully thread-safe code hooking and unhooking.
Support hooking Object Method.
Support Delphi 7/2005-2010/XE-XE8.
Support Lazarus/FPC.
64 bit address is supported.
The library does not use any external library.
The library can insert and remove the hook at any time.
The library contains InstDecode library, that allow to you to decode CPU instructions (x86 & x64).
This project contains two sub projects : The Detours Library and the InstDecode library.

The InstDecode Library is a library that can decode both (x86-x64) instructions. You can consider it as a small disassembler routine. It can decode instruction and getting information about the instruction (size of instruction,displacement,immediate data, jump address,..) without displaying mnemonics making it very faster and small in compiled size.


 

ZXing barcode library

$
0
0
Delphi/Lazarus port of QR Code functionality from ZXing, a barcode image processing library. The support for non-standard encodings has been added

DelphiZXingQRCodeEx is a Delphi port of the QR Code functionality from ZXing, an open source barcode image processing library.

The code was initially ported to Delphi by Senior Debenu Developer, Kevin Newman (project DelphiZXingQRCode, see links below). Then it was changed by Michael Demidov. The changes are listed in CHANGELOG.md.

The most fundamental differences are:

Error correction level has been fixed.
Support for programmer-defined charsets. As an example, I implemented Win-1251 Russian charset and URL encoding (when non-Latin characters are represented as %-codes).
Exception handling has been added. There is no more Access Violation when input string is too long.
New QRGraphics.pas unit has been added that contains several functions to draw the QR Code on a given canvas (TCanvas) and to generate either a bitmap or a metafile.
Still compatible with older versions of Delphi (at least Delphi 7). Compatible with Lazarus (1.2.6, for Windows), see CHANGELOG.md (section 5).


 

LibreCrypt: Transparent on-the-fly disk encryption for Windows

$
0
0
 
  • Full transparent encryption, containers appear as removable disks in Windows Explorer.
  • Compatible with Linux encryption: dm-crypt and LUKS. Linux shell scripts support deniable encryption on Linux.
  • Explorer program lets you browse containers when you don't have administrator permissions.
  • Supports smartcards and security tokens.
  • Encrypted containers can be a file, a partition, or a whole disk.
  • Opens legacy volumes created with FreeOTFE
  • Runs on Windows Vista onwards (see note below for 64 bit versions).
  • Supports many hash (including SHA-512, RIPEMD-320, Tiger) and encryption algorithms (Including AES, Twofish, and Serpent) in several modes (CBC, LRW, and XTS).
  • Optional 'key files' let you use a thumb-drive as a key.
  • Portable mode doesn't need to be installed and leaves little trace on 3rd party PCs (administrator rights needed).
  • Deniable encryption in case of 'rubber hose cryptanalysis'.
  • Considered the most easy to use encryption program for Windows.

User Control Show Delphi Edition

$
0
0
Delphi 7Delphi 2010Delphi XE 3Delphi XE 6Delphi XE 7Delphi XE 8Delphi 10 SeattleDelphi 10.1 Berlin

 

zControls -TzObjectInspector component

$
0
0
zControls is a collection of Delphi components,actually it contains only one component TzObjectInspector.You can't view the links! Click here to register
  • VCL Style support.
You can't view the links! Click here to register
  • Multi objects editing.
You can't view the links! Click here to register
  • Quick Find for properties : Just press TAB and start typing your property name.
You can't view the links! Click here to register
  • Header/GridLine style.
You can't view the links! Click here to register
  • Support most basic properties : Color,Cursors...
You can't view the links! Click here to register You can't view the links! Click here to register
  • Support Items,Font,Color,Icon dialogs.
You can't view the links! Click here to register You can't view the links! Click here to register
  • Auto complete user input.
You can't view the links! Click here to register
  • Events supports.
You can't view the links! Click here to register
  • Regrouping properties by category .
  • Fully customized : you can easy register your own property !.
  • Action notify : you can allow/prevent user from editing somes properties .
  • And more ...!
 

PE image for delphi

$
0
0
This is Delphi library to work with Portable Executable Image files. The main purpose is to make parsing image structures of 32/64 bit image easy. Now it can parse most used things, like: sections, imports, exports, resources and tls.Also it can write image, but that was not primary goal.ToDo:
  • There must be introduced sparsed/paged virtual memory concept (just like Windows does) Currently all section data is loaded into memory. Some virus samples tested can crash loading because of using too big virtual address range. With normal compiler generated images you won't have such problem.
 

XLSReadWriteII.v.5.20.62 source updated to Delphi XE 10.1


Audio Components Suite

$
0
0
 Audio Components Suite for Lazarus/Delphi
  • Audio in/out Windows: Standard (Wawemapper), DirectSound Linux: Standard (/dev/dsp), ALSA, AO Live
  • File in/out Crossplatform: FLAC, Vorbis, RIFF (WAV), MPEG-3 (MP3), CD-Audio Windows: DirectShow, Monkey's Audio (APE)
  • Audio mixers
  • Audio sample converters
  • Audio indicators
  •  

DataPort - thread-safe abstract port for data exchange

$
0
0
 DataPort - thread-safe abstract port for data exchange. You can open DataPort and push some data into - data will appear on other side. And if other side send some data, you will get notifyed and can pull data from port at any time.DataPort use Ararat Synapse library ( You can't view the links! Click here to register ), which must be installed first as separate package for Lasarus.DataPort can be freely used and modified under MIT License.Features:
  • non-visual components for Lazarus/Delphi
  • network (TCP/UDP/HTTP)
  • serial port (UART, COM-port, FTDI)
  • device file (ioctl supported) and conventional file
  • named pipes
Coming soon:
  • listener (server)
  • paralel port (LPT)
  • DDE
  • IPC
You can't view the links! Click here to registerTDataPortSerialSerial communication port. In Windows it COM-port (real or virtual). In Linux it /dev/ttyS or /dev/ttyUSB. Also, Linux use file /var/lock/LCK..ttyS for port lockingProperties:
  • Port - port name (COM1, /dev/ttyS01)
  • BaudRate - data excange speed
  • MinDataBytes - minimal bytes count in buffer for triggering event OnDataAppear
Methods:
  • Open() - Opens port. As parameter it use port initialization string:
PHP Code:
[code]
InitStr 'Port,BaudRate,DataBits,Parity,StopBits,SoftFlow,HardFlow'

Port COM port name (COM1, /dev/ttyS01)
BaudRate connection speed (50..4000000 bits per second), default 9600
DataBits 
- default 8
Parity 
- (NoneOddEvenMark or Space) default N
StopBits 
- (11.52)
SoftFlow Enable XON/XOFF handshake, default 1
HardFlow 
Enable CTS/RTS handshake, default 0

[/code
Events:
  • OnConnect - Triggered after sucñessful connection.
  • OnDisconnect - Triggered after disconnection.
You can't view the links! Click here to registerTDataPortIP, TDataPortTCP, TDataPortUDPAsynchronous wrapper around Synapse TBlockSocket.When using UDP, remember, that it not session protocol, data delivery and correct order not guaranteed. To start receive tde data, you must send empty packet to remote side, it tell remote side return address.Properties:
  • RemoteHost - IP-address or name of remote host
  • RemotePort - remote UPD or TCP port number
Methods:
  • Open() - Connect to remote port. Session establiched for TCP and just port initialised for UDP. Init string format:
PHP Code:
[code]
InitStr '<DeviceDescription>:<SerialNumber>'
Examples:
  
'USB Serial:' first device of 'USB Serial' type
  
':FT425622'   device with s/n FT425622

[/code
Events:
  • OnConnect - Triggered after UDP port init or TCP session establiched.
You can't view the links! Click here to registerTDataPortFileData exchange via file. Suitable for device files (/dev/* under Unix or special files in Windows). Conventional data files can be used too.Properties:
  • Filename - Path (optionally) and name of file.
  • FilePos - Current position in file, bytes from beginning (for conventional files).
  • QueryInterval - Interval for checking changes in file, milliseconds.
  • MinDataBytes - Minimum number of bytes in buffer for triggering OnDataAppear event.
  • KeepOpen - Keep the file open between read and write operations:
    • True - file stay opened
    • False - file will be opened before every read/write operation and closed after.
  • WriteMode - File write mode:
    • fwmRewrite - every write apply to beginning of file
    • fwmAppend - data written from last operation position or appended to the end of file
Methods:
  • Open() - Opens file with given name, "file:" prefix can be used.
You can't view the links! Click here to register[/lock]

DEVEXPRESS VCL v16.1.2 FULL

$
0
0
good afternoon
There is already a version of the DevExpress VCL 16.1.2 or higher in the forum to download?
I searched but not found it.
Thank you

Magenta Systems WMI and SMART Component v5.5 DX10.1

$
0
0
Magenta Systems WMI and SMART Component
Home: Code:
PHP Code:
http://www.magsys.co.uk/delphi/magwmi.asp 
Introduction

Magenta Systems WMI and SMART Component contains WMI, SMART and SCSI Pass
Through functions, of particular use for getting hard disk information and
configuring network adaptors, but also for many other general uses.

MagWMI which allows access and update of windows system information using
Windows Management Instrumentation. MagWMI provides general view access
to any WMI information using SQL like commands, and also a number of
dedicated function relating to TCP/IP configuration, such as setting the
adaptor IP addresses, the computer name, domain/workgroup, BIOS and disk
drive information.

...

Magenta Systems WMI and SMART Component v5.5
  • Added missed function MagWmiGetInfoExASSOCIATORS for XE10.1

TMS Component Pack 8.3.4.0 Full Source D7-DX10.1 Win32-Win64 Retail 2016-09-23

XLSReadWriteII.v.5.20.67 D7-XE10.1

EhLib 9.0 Build 9.0.028 XE10.1


Digital Media Controller Component

$
0
0
PHP Code:
TUpnpDMC is a class that implements a DLNA DMC (Digital Media Controllerin Delphi.
I needed some Delphi code to play Videos from my server to my SAMSUNG TV.
I could only find some partial implementationone in Visual Basic and some code in Delphi
bur not a complete DMCso I wrote this.
There is an example application in the directory UPNPDelphi.
On second thoughtI should heva named the class TDLNADMC and the same for the example.
For 
nowI am just sharing this code.

You can browse the available servers and renderers on your system.
Once foundyou can select an item from the server and play it on a renderer.
Then you can pausestopplayseek that item

You create a TUpnpDMC object by calling _create_

supplying an owner and a TStrings (not NILused as Log
You can search devices by _SearchDevices_
Set _OnDeviceListChanged_ to receive notifaction on Devices available
Then retrieve Servers 
and Renderers by inpecting _ServerCount_ and _GetServerName_ etc.
Select a Server with _SetServerIndex_the same for a Renderer
Browse the Server tree with _BrowseRoot_ 
and subdirectories with _BrowseIndex_,
go back with _Back_
Inspect items with _GetItemName_ 
and _ItemCount_
Select an item with _SetItemIndex_

Now you can Play
PauseSeekSetPosition etc the item with the corresponding methods.
You can retrieve information bij GetPosition and GetPlayStatus

[lock]Download [url=https://github.com/RuudErmers/DelphiDLNADMC/archive/master.zip]HERE[/url][/lock] 
 

Android to PC USB Interfaces (ADB, AOA, HID)

$
0
0
 
PHP Code:
This is a set of code to aid development for communication between an Android device and 
an Embedded Device, or PCThere are examples for the following:

Communication between PC and Android deviceover USBusing the ADB (Android Debugprotocol.
Communication between PC and Android deviceover USBusing the AOA (Android Open Accessoryprotocol.
Communication between PC and a simple HID device (Arduino and LPC 1768 Microcontroller).

All PC code is written in Delphi.
Android code is in Java and the embedded code in C/C++.

So why would you want this?
We are developing a hardware device which needs to interact with an Android phone.
It needs to be robust and simpleso we opted for a USB interface. 
(
Wireless connections were ruled out)
In this case the Android device is the USB client, and the hardware device is USB Host.
In development it became clear that it would be handy to change the hardware device for a PC,
to test the Android side of things without to much hassle on the hardware device.
Therefor we needed an Android <-> PC bridge.
I found a few (in C), but I opted to use Delphi for quick testing
Based on LibUSBK there is a class which implements a simple twoway USB connection.
From therethere are classes which implement the ADB protocol and the AOA protocol.

As 
you may know the ADB interface runs on devices supporting Android 1.5AOA is only supported
by some devices
, and need Android 2.3.3.
PersonallyI don't see any advantage of using AOA as it is not widely supported. In fact, 
I was only able to get this working with one Android Device i have (a chines Android TV Stick)

All of this code becomes '
obsolete' when using an Android device which adds HID facility. 
This is supported from Android 4.0. Since all the basics wre there I decide to add an example where 
Delphi takes over the Android side to test the hardware. 
I have added two examples on Embedded platforms, for Arduino and LPC 1768 (from mBed).
I have also some examples for FEZ Domino or Microchip Cereboth (both implementing ADB host).
On the HID facility: This is also only implemented in some devices.

[lock]Download [url=https://github.com/RuudErmers/AndroidDelphiInterface/archive/master.zip]HERE[/url][/lock] 

XtremeDocumentStudio Ultimate.v.16.6.638.1890 D2010-XE10.1

$
0
0
Gnostice XtremeDocumentStudio Delphi is the next-generation multi-format document-processing component suite for Delphi/C++Builder developers. XtremeDocumentStudio includes VCL components for viewing, printing, and converting PDF, DOCX, DOC, RTF, BMP, JPEG, PNG, WMF, EMF, and single-page and multi-page TIFF. It also has report-export components for ACE Reporter, FastReport, QuickReport and ReportBuilder components that can export to PDF, PDF/A, XLSX, RTF, HTML, XHTML, TXT, SVG, PNG, JPEG and GIF formats. PDF/A support includes compliance with PDF/A 1b, 2b, and 3b versions. PDF/A-3b support complies with ZUGFeRD electronic invoicing standard. In future, creation and editing support will be added.

XtremeDocumentStudio also includes FireMonkey support. Its FireMonkey document viewer can display PDF, DOC, RTF and images on Windows, Mac, iOS and Android platforms. The FireMonkey support is currently in beta and we are continually improving the rendering with support for more and more features of each of the formats.

XtremeDocumentStudio Delphi is written in 100% Object Pascal for both VCL and FireMonkey. It can process all supported formats without requiring external software such as Microsoft Word, Open XML SDK, Adobe PDF library or GhostScript.

Supports Delphi 2010 to Delphi XE10.1(Berlin)


 

FastReport 5.3.16

Intraweb Bootstrap 3 Framework for Delphi

$
0
0
This framework let you create responsive desktop and mobile applications with IntraWeb using Tweeter Bootstrap 3 library.Using the ide in the same way you use for create traditional Intraweb Aplications, with very little effort you can create a single applications that look awsome in mobile devices and desktop at the same time.It's light and fast so it provides a great experience for the final user on practically any modern device.If you need to develop applications for phones, tablets and any other device this is the best alternative for use with Intraweb for Delphi.

 
Viewing all 1331 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>