Quantcast
Channel: Delphi Programming – The curse of Dennis D. Spreen
Browsing all 19 articles
Browse latest View live

OnClick Event in TTreeView Objects

This code returns the TAG of a clicked node in Delphi for PHP function TreeView1JSClick($sender, $params) { ?> //Add your javascript code here tag=event.getTarget().tag; alert(tag); return(false);...

View Article


Right To Left Forms support

How to enable Right To Left Forms (including icons and form captions) with Delphi: Override the CreateParams method and insert procedure TForm1.CreateParams(var Params: TCreateParams); begin inherited;...

View Article


Image may be NSFW.
Clik here to view.

Unicode in Resource files

Ever tried to put a unicode string (Delphi 2009) in a resource (.rc) file and tried to compile it with brcc32 or rc32? You’ll get this error:  Expecting resource name or resource type name The Solution...

View Article

Delphi Prism new language features

Andreano Lanusse wrote about the new Delphi Prism language features compared to Delphi Win32. Some of them I really would like to see in Delphi Win32 and some I don’t like and disallowed it in our...

View Article

Lua 5.1 for Delphi 2010

This is a Lua 5.1 Wrapper for Delphi 2009 and Delphi 2010 which automatically creates OOP callback functions. “Lua is a powerful, fast, lightweight, embeddable scripting language, it has been used in...

View Article


Solving circular unit references with class helpers

Sooner or later you run into the circular unit reference problem when using a single unit for each class. There are some solutions (move the common used structs into a separate unit, use type casting,...

View Article

VerySimpleXML – a lightweight Delphi XML reader and writer

There are lot of possibilities if you’re in need to parse or write XML files: use TXMLDocument (the MSXML wrapper) or use xml components like OmniXML, NativeXml, ADOM, SAX, libxml2, DIXml, fcl-XML,...

View Article

Image may be NSFW.
Clik here to view.

There is already a standard code style

As François Piette (a very honourable Embarcadero MVP) recently wrote, coding style matters. He states “… this is mostly a matter of personal preferences as long as the style is constant…” but I...

View Article


Image may be NSFW.
Clik here to view.

Porting to XE5 and the “W1030 Invalid compiler directive: ‘true’” warning

If you port your application to Delphi XE5 and you receive this warning [dcc32 Warning] W1030 Invalid compiler directive: 'true' then edit the ‘Build Configurations (Debug)’ settings and change the...

View Article


Exception while using TStreamReader with TZipFile

If you’re using the TStreamReader with a TZDecompressionStream – the stream output by TZipFile.Read(const FileName: string; out Stream: TStream; out LocalHeader: TZipHeader) – you’re likely to...

View Article

VerySimpleXML 2.0 – a lightweight, cross-platform, one-unit XML reader/writer...

There are lot of possibilities if you’re in need to parse or write XML files: use TXMLDocument (the MS XML wrapper) or use a xml component like OmniXML, NativeXml, ADOM, SAX, libxml2, DIXml, fcl-XML,...

View Article

Delphi XE7 and iOS error “Unable to mount developer image (e800000e)”

Stumbled across this error during Delphi XE7 iOS deployment: Unable to mount developer image (e800000e). Solution: reinstall Xcode command line tools with xcode-select --install A software update popup...

View Article

VerySimple.Lua 2.0 – a cross-platform Lua 5.3.0 wrapper for Delphi XE5-XE7

VerySimple.Lua is a Lua 5.3 binding for Delphi XE5- XE7 which automatically creates OOP callback functions for Win32, Win64, Mac OS X, iOS and Android. “Lua is a powerful, fast, lightweight, embeddable...

View Article


Image may be NSFW.
Clik here to view.

How to fix the “api-ms-win-crt-runtime-l1-1.0.dll is missing” error for...

If you experience this error during the start of Delphi 10 Seattle This error is not related to Delphi 10 Seattle – it is caused by TortoiseSVN v1.9 which is “side loaded” during start up (if installed...

View Article

LibBLP v1.0 – A BLP image reader library for Delphi 10.1 Berlin+ with DXT3/5...

LibBLP v1.0 – A BLP image reader library for Delphi 10.1 Berlin+ for Palettized and uncompressed images and with DXT1 / DXT3 and DXT5 decompression support BLP files are Blizzard’s texture format. The...

View Article


Behavior3 client library for Delphi (Behavior Trees for Delphi)

behavior3delphi is a Behavior3 client library for Delphi (Behavior Trees for Delphi) based on behavior3js. Features Based on behavior3 Supports loading of behavior3editor project files (a visual...

View Article

Pass a multidimensional array as a parameter (with a hidden caveat)

How to pass a multidimensional array as a parameter? Long ago this question was answered on Stack Overflow with a simple answer: make a specific type for your array. But there is a hidden caveat… If...

View Article


MOS6502-delphi – a MOS 6502 CPU emulator for Delphi

This is the Delphi / Pascal port of the C++ implementation for the MOS Technology 6502 CPU by Gianluca Ghettini. The code is written to be more readable than fast, however some minor tricks have been...

View Article

Please make inline vars usable for production – fix RSP-22158

With the arrival of Delphi Rio 10.3 in October 2018 we saw “a very handy feature to the language, local inline variables with local scope and type inference” [Marco Tech Blog]. That was a feature “long...

View Article
Browsing all 19 articles
Browse latest View live