Archive for the ‘Delphi’ Category
Posted by jpluimers on 2013/07/30
A while ago, I needed routines to work with absolute and relative paths on Windows.
These links were very useful:
- The Delphi TPath.IsDriveRooted function (I think it was introduced in Delphi 2010) serves as a IsPathAbsolute function
- Conversion between absolute and relative paths in Delphi – Stack Overflow showing how to use the Windows API functions PathRelativePathTo and PathCanonicalize functions declared in the ShLwApi unit to create AbsToRel and RelToAbs functions.
Thanks Andreas Rejbrand and David Heffernan for the last two!
–jeroen
via: Conversion between absolute and relative paths in Delphi – Stack Overflow.
Posted in Delphi, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development | 4 Comments »
Posted by jpluimers on 2013/07/26
During code reviews, I often see people do things like this:
if (not DirectoryExists(Path)) then
ForceDirectories(Path))
or this:
if (not TDirectory.Exists(Path)) then
TDirectory.CreateDirectory((Path))
Half a year ago, I wrote about .NET/C#: do not do “if (!Directory.Exists(path)) Directory.CreateDirectory(path))”. Read the rest of this entry »
Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | 16 Comments »
Posted by jpluimers on 2013/07/25
Replay video’s can be viewed through streaming.embarcadero.com (where you can also find the other series, downloads, etc).
The SummerSchool 2013 replay videos are at streaming.embarcadero.com/summerschool2013.
The Q&A from today’s session on “Accessing local storage” demonstrating iOS specifics in Delphi XE4: Read the rest of this entry »
Posted in Delphi, Delphi XE4, Development, Software Development | Tagged: Delphi, embarcadero, iOS, OS, software, technology | Leave a Comment »
Posted by jpluimers on 2013/07/25
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Delphi, Delphi XE2, Delphi XE3, Development, Software Development | 4 Comments »
Posted by jpluimers on 2013/07/18
I bumped into the below answer that I gave a while (what is 4 years in a developer’s life ) on StackOverflow.
It is about Delphi Design Patterns. Sepcifically the Factory Pattern, and explains how virtual constructors implement it.
They are one of the 3 corner stones on which the component based Delphi form designer and object inspector are built:
- Virtual constructors
- Properties (events are just a special form of property)
- Run-Time Type Information.
So here it goes: Read the rest of this entry »
Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | 6 Comments »
Posted by jpluimers on 2013/07/10
Just found out that the kind people at BitSavers added some scanned USCD Pascal documentation in PDF format:
It reminds me of my early Pascal days on Apple ][. UCSD Pascal was so slow that I was glad to discover Turbo Pascal 1.0, which lacked some of the UCSD Pascal features (for instance cross platform – including Mac, almost 30 years ago! – and Turtle graphics), but was blazingly fast.
Trade offs indeed (:
–jeroen
Posted in BitSavers.org, Delphi, Development, History, Pascal, Software Development, Turbo Pascal, UCSD Pascal | 10 Comments »
Posted by jpluimers on 2013/07/09
Sometimes a generic answer to a specific answer gives people a lot more insight into what they actually want to accomplish than a specific answer.
Plus that the knowledge does not only apply to VCL in any Delphi version: it works in any development environment where you can draw.
That’s why I like this 2D transformation answer so much: Read the rest of this entry »
Posted in Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2013/06/20
On the blog from Embarcadero MVP Luis Felipe González Torres are some great Delphi XE4 iOS demos.
However, the blog is Spanish (that’s probably why he is not on DelphiFeeds), so if you do not understand that you had to live with the Google Translate versions of the pages.
Until CodeRage Mobile that is: Anders Ohlsson gave a English presentation:
Creating Apple Push Notification Services (APNS) for your Mobile Applications
iOS supports the Apple Push Notification Services (APNS) This session will show you how to create a push notification services as part of your mobile application. APNS is service for sending information to iOS and OSX devices. This session will show you how to create server and device applications that create notifications containing the device token and JSON payload property list.
via CodeRage Mobile – Conference Sessions.
Basically he covered these Spanish blog posts where you can download the source code (Google translation in parenthesis):
- Delphi XE4 iOS. Adicionando soporte a Notificaciones Remotas (Video y Código Fuente) |.
(Delphi XE4 iOS. Adding support for Notifications Remote (Video and Source) |)
- Delphi XE4 iOS. Flexibilizando el Soporte a Push Notification. Solucíon mas elegante! |.
(Delphi XE4 iOS. Easing the Push Notification Support. More elegant solution! |)
- Delphi iOS XE4. Apple Push Notification. Capturando la notificación cuando la aplicación no se está ejecutando. |.
(XE4 iOS Delphi. Apple Push Notification. Capturing the notification when the application is not running. |)
- Delphi iOS XE4. Apple Push. Configuración del Ambiente (Muy importante) |.
(XE4 iOS Delphi. Apple Push. Environment Settings (important) |)
Important things:
–jeroen
Posted in Delphi, Delphi XE4, Development, FireMonkey, iOS, Software Development | Leave a Comment »
Posted by jpluimers on 2013/06/20
Cool to know that DIPP is able to strip directives from Delphi source code:
The freeware program DIPP from Delphi Inspiration can remove conditionals.
http://www.yunqa.de/delphi/doku.php/products/dipp/index
Even though DIPP does not support post-Delphi-2007 language enhancements, it usually does a very good job.
–jeroen
via: Delphi: Is there a tool that can remove conditional directives for particular conditional symbols? – Stack Overflow.
Posted in Delphi, Development, Software Development | Leave a Comment »