Posted by jpluimers on 2014/11/20
Please someone add the Software on a String blog to DelphiFeeds (:
Great article on testing implementations of interfaces in a generic way. With examples in NUnit and DUnit.
How do I test an interface? Should I even do that? | Software on a String.
And then Stefan Glienke made a great comment at https://plus.google.com/u/0/+MarjanVenema/posts/Dgb8WADLwXZ making the DUnit implementation even easier:
But even if you go without that extra base class the cool thing is that you don’t need to restrict your classes to be a TInterfacedObject but specify the interface they need to implement (yay, compiletime type safety) and then you can get rid of the Supports call and directly assign the result of the ctor call to the sut variable.
Read the rest of this entry »
Posted in Delphi, Delphi 2007, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2014/11/20
Ever since the Delphi build engine got changed to MS Build in Delphi 2007, many people use Delphi build events. Their order is prebuild, prelink and postbuild (or maybe better spelled pre-build, pre-link and post-build).
Before Delphi 2007, you had to fiddler with project groups and dependencies to fake pre-build and post-build events. For an example see Pre and Post-Build Automation in Delphi.
One of the really good things about these events is that build events appear in the output tab of the messages window.
One of the really bad things is that there is hardly any documentation about the build events.
At least two important things are missing:
- How the lines of a build event are actually executed
- How parameter expansion works inside build events
Let’s explain these. Read the rest of this entry »
Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, FastMM, Software Development | 1 Comment »
Posted by jpluimers on 2014/11/19
A while ago I bumped into a funny problem with Delphi XE.
I moved all the code from the .dpr in a Main unit (the IDE sometimes overwrites part of the DPR).
This normally isn’t a problem, until Delphi re-generates the .RES file. The reason is that this .RES file can contain a manifest which enables Windows theming.
If there is no reference of the
Application object in the .DPR, the IDE will remove the Theming manifest from the .RES file, so your application run unthemed.
Three solutions: Read the rest of this entry »
Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | 5 Comments »
Posted by jpluimers on 2014/11/18
This should not be difficult to do, just time consuming. So it is on my research list to see how time consuming: build a TXMLDocument binding for OmniXML.
This is to urge less people to try to parse XML by hand like xml – Copy & Copy does not work correctly with stringlist – Stack Overflow.
via: Delphi, OmniXML – XML binding? – Stack Overflow.
Posted in Delphi, Delphi XE4, Delphi XE5, Development, Software Development, XML/XSD | 9 Comments »
Posted by jpluimers on 2014/11/17
Some great links posted last week by mos6502 about soldering your own 6502 based computer.
The videos are of Ben Heck building an Apple I replica. But others did similar builing of NINA65, Loom 6502 and others.
I wish I had soldering skills like that, but I’m more of a programmer (that started on a 6502).
Great viewing those links and videos.
via: Do you remember the Apple I auction results that went through the media….
Here are Ben Heck’s videos: Read the rest of this entry »
Posted in 6502, Apple, Apple I, History, Power User | Leave a Comment »